Package com.usatiuk.dhfs.jmap
Record Class JMapEntry<K extends JMapKey>
java.lang.Object
java.lang.Record
com.usatiuk.dhfs.jmap.JMapEntry<K>
- All Implemented Interfaces:
JData,Serializable
public record JMapEntry<K extends JMapKey>(JObjectKey key, JObjectKey holder, K extends JMapKey selfKey, JObjectKey ref)
extends Record
implements JData
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJMapEntry(JObjectKey key, JObjectKey holder, K selfKey, JObjectKey ref) Creates an instance of aJMapEntryrecord class.JMapEntry(JObjectKey holder, K selfKey, JObjectKey ref) -
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.holder()Returns the value of theholderrecord component.key()Returns the value of thekeyrecord component.ref()Returns the value of therefrecord component.selfKey()Returns the value of theselfKeyrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.usatiuk.objects.JData
estimateSize
-
Constructor Details
-
JMapEntry
-
JMapEntry
Creates an instance of aJMapEntryrecord class.- Parameters:
key- the value for thekeyrecord componentholder- the value for theholderrecord componentselfKey- the value for theselfKeyrecord componentref- the value for therefrecord 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
public final 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. All components in this record class are compared withObjects::equals(Object,Object). -
key
Returns the value of thekeyrecord component. -
holder
Returns the value of theholderrecord component.- Returns:
- the value of the
holderrecord component
-
selfKey
Returns the value of theselfKeyrecord component.- Returns:
- the value of the
selfKeyrecord component
-
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-