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 aJMapEntry
record class.JMapEntry
(JObjectKey holder, K selfKey, JObjectKey ref) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.holder()
Returns the value of theholder
record component.key()
Returns the value of thekey
record component.ref()
Returns the value of theref
record component.selfKey()
Returns the value of theselfKey
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.usatiuk.objects.JData
estimateSize
-
Constructor Details
-
JMapEntry
-
JMapEntry
Creates an instance of aJMapEntry
record class.- Parameters:
key
- the value for thekey
record componentholder
- the value for theholder
record componentselfKey
- the value for theselfKey
record componentref
- the value for theref
record 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 thekey
record component. -
holder
Returns the value of theholder
record component.- Returns:
- the value of the
holder
record component
-
selfKey
Returns the value of theselfKey
record component.- Returns:
- the value of the
selfKey
record component
-
ref
Returns the value of theref
record component.- Returns:
- the value of the
ref
record component
-