Package dev.enola.common.io.object
Record Class ExampleRecord
java.lang.Object
java.lang.Record
dev.enola.common.io.object.ExampleRecord
public record ExampleRecord(@Nullable String string, Set<String> stringSet, List<String> stringList, @Nullable ExampleRecord example, @Nullable String defaultValue, @Nullable Instant timestamp, @Nullable Boolean isPrivate, @Nullable ExampleIdentifiableRecord exampleIdentifiableRecord, List<ExampleIdentifiableRecord> exampleIdentifiableRecords, Map<String,ExampleIdentifiableRecord> exampleIdentifiableRecordMap)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExampleRecord(@Nullable String string, Set<String> stringSet, List<String> stringList, @Nullable ExampleRecord example, @Nullable String defaultValue, @Nullable Instant timestamp, @Nullable Boolean isPrivate, @Nullable ExampleIdentifiableRecord exampleIdentifiableRecord, List<ExampleIdentifiableRecord> exampleIdentifiableRecords, Map<String, ExampleIdentifiableRecord> exampleIdentifiableRecordMap) Creates an instance of aExampleRecordrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable ExampleRecordexample()Returns the value of theexamplerecord component.@Nullable ExampleIdentifiableRecordReturns the value of theexampleIdentifiableRecordrecord component.Returns the value of theexampleIdentifiableRecordMaprecord component.Returns the value of theexampleIdentifiableRecordsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable BooleanReturns the value of theisPrivaterecord component.@Nullable Stringstring()Returns the value of thestringrecord component.Returns the value of thestringListrecord component.Returns the value of thestringSetrecord component.@Nullable InstantReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExampleRecord
public ExampleRecord(@Nullable String string, Set<String> stringSet, List<String> stringList, @Nullable ExampleRecord example, @Nullable String defaultValue, @Nullable Instant timestamp, @Nullable Boolean isPrivate, @Nullable ExampleIdentifiableRecord exampleIdentifiableRecord, List<ExampleIdentifiableRecord> exampleIdentifiableRecords, Map<String, ExampleIdentifiableRecord> exampleIdentifiableRecordMap) Creates an instance of aExampleRecordrecord class.- Parameters:
string- the value for thestringrecord componentstringSet- the value for thestringSetrecord componentstringList- the value for thestringListrecord componentexample- the value for theexamplerecord componentdefaultValue- the value for thedefaultValuerecord componenttimestamp- the value for thetimestamprecord componentisPrivate- the value for theisPrivaterecord componentexampleIdentifiableRecord- the value for theexampleIdentifiableRecordrecord componentexampleIdentifiableRecords- the value for theexampleIdentifiableRecordsrecord componentexampleIdentifiableRecordMap- the value for theexampleIdentifiableRecordMaprecord 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
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. All components in this record class are compared withObjects::equals(Object,Object). -
string
Returns the value of thestringrecord component.- Returns:
- the value of the
stringrecord component
-
stringSet
Returns the value of thestringSetrecord component.- Returns:
- the value of the
stringSetrecord component
-
stringList
Returns the value of thestringListrecord component.- Returns:
- the value of the
stringListrecord component
-
example
Returns the value of theexamplerecord component.- Returns:
- the value of the
examplerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
isPrivate
Returns the value of theisPrivaterecord component.- Returns:
- the value of the
isPrivaterecord component
-
exampleIdentifiableRecord
Returns the value of theexampleIdentifiableRecordrecord component.- Returns:
- the value of the
exampleIdentifiableRecordrecord component
-
exampleIdentifiableRecords
Returns the value of theexampleIdentifiableRecordsrecord component.- Returns:
- the value of the
exampleIdentifiableRecordsrecord component
-
exampleIdentifiableRecordMap
Returns the value of theexampleIdentifiableRecordMaprecord component.- Returns:
- the value of the
exampleIdentifiableRecordMaprecord component
-