Record Class EmbeddableClass
java.lang.Object
java.lang.Record
io.micronaut.data.tck.entities.EmbeddableClass
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddableClass(String embeddedName, Long number, long n, double d) Creates an instance of aEmbeddableClassrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubled()Returns the value of thedrecord component.Returns the value of theembeddedNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longn()Returns the value of thenrecord component.number()Returns the value of thenumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EmbeddableClass
Creates an instance of aEmbeddableClassrecord class.- Parameters:
embeddedName- the value for theembeddedNamerecord componentnumber- the value for thenumberrecord componentn- the value for thenrecord componentd- the value for thedrecord 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. -
embeddedName
Returns the value of theembeddedNamerecord component.- Returns:
- the value of the
embeddedNamerecord component
-
number
Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
n
public long n()Returns the value of thenrecord component.- Returns:
- the value of the
nrecord component
-
d
public double d()Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-