Record Class ThingRecord
java.lang.Object
java.lang.Record
com.github.dkfellows.notabuilder.ThingRecord
- Record Components:
foo- The foo field.bar- The bar field.grill- The grill field.quux- The quux field.
A record that has four fields.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionThingRecord(int foo, int bar, double grill, String quux) Deprecated.ThingRecord(ThingRecord.Args... args) Make an instance of the record. -
Method Summary
Modifier and TypeMethodDescriptionintbar()Returns the value of thebarrecord component.final booleanIndicates whether some other object is "equal to" this one.intfoo()Returns the value of thefoorecord component.doublegrill()Returns the value of thegrillrecord component.final inthashCode()Returns a hash code value for this object.quux()Returns the value of thequuxrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ThingRecord
Make an instance of the record.- Parameters:
args- The labelled non-default arguments to pass.- See Also:
-
ThingRecord
Deprecated.Creates an instance of aThingRecordrecord class.
-
-
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. -
foo
-
bar
-
grill
-
quux
-