Package emi.dev.emi.emi
Record Class Prototype
java.lang.Object
java.lang.Record
emi.dev.emi.emi.Prototype
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getItem()inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.intmeta()Returns the value of themetarecord component.static PrototypetoStack()toStack(int count) toString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Prototype
-
Prototype
Creates an instance of aPrototyperecord class.- Parameters:
item- the value for theitemrecord componentmeta- the value for themetarecord component
-
-
Method Details
-
toStack
-
toStack
-
getItem
-
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. -
of
-
hashCode
public 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 '=='. -
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
meta
public int meta()Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-