Package org.javastro.ivoa.registry.ui
Record Class RegistrySummary.Summary
java.lang.Object
java.lang.Record
org.javastro.ivoa.registry.ui.RegistrySummary.Summary
- Enclosing class:
- RegistrySummary
public static record RegistrySummary.Summary(int managedRecords, int harvestedRecords, int sources, Map<String,Long> sourcesByStatus, boolean regtap)
extends Record
Snapshot of the registry content and state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theharvestedRecordsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themanagedRecordsrecord component.booleanregtap()Returns the value of theregtaprecord component.intsources()Returns the value of thesourcesrecord component.Returns the value of thesourcesByStatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Summary
public Summary(int managedRecords, int harvestedRecords, int sources, Map<String, Long> sourcesByStatus, boolean regtap) Creates an instance of aSummaryrecord class.- Parameters:
managedRecords- the value for themanagedRecordsrecord componentharvestedRecords- the value for theharvestedRecordsrecord componentsources- the value for thesourcesrecord componentsourcesByStatus- the value for thesourcesByStatusrecord componentregtap- the value for theregtaprecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
managedRecords
public int managedRecords()Returns the value of themanagedRecordsrecord component.- Returns:
- the value of the
managedRecordsrecord component
-
harvestedRecords
public int harvestedRecords()Returns the value of theharvestedRecordsrecord component.- Returns:
- the value of the
harvestedRecordsrecord component
-
sources
public int sources()Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
sourcesByStatus
Returns the value of thesourcesByStatusrecord component.- Returns:
- the value of the
sourcesByStatusrecord component
-
regtap
public boolean regtap()Returns the value of theregtaprecord component.- Returns:
- the value of the
regtaprecord component
-