Record Class ContributionLedger.Snapshot
java.lang.Object
java.lang.Record
com.ultikits.ultitools.bootstrap.ContributionLedger.Snapshot
- Enclosing class:
ContributionLedger
private static record ContributionLedger.Snapshot(int schema, Map<String, ContributionLedger.Row> modules)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ContributionLedger.Row> The field for themodulesrecord component.private final intThe field for theschemarecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSnapshot(int schema, Map<String, ContributionLedger.Row> modules) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modules()Returns the value of themodulesrecord component.intschema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
schema
private final int schemaThe field for theschemarecord component. -
modules
The field for themodulesrecord component.
-
-
Constructor Details
-
Snapshot
Creates an instance of aSnapshotrecord class.- Parameters:
schema- the value for theschemarecord componentmodules- the value for themodulesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
schema
public int schema()Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
modules
Returns the value of themodulesrecord component.- Returns:
- the value of the
modulesrecord component
-