Package com.petrolpark.util
Record Class NestedSequenceBiMap.Entry.SubMapEntry<K,V>
java.lang.Object
java.lang.Record
com.petrolpark.util.NestedSequenceBiMap.Entry.SubMapEntry<K,V>
- All Implemented Interfaces:
ISequenceBiMap.IEntry<K,,V, List<K>, NestedSequenceBiMap.Entry<K, V>, NestedSequenceBiMap<K, V>> NestedSequenceBiMap.Entry<K,V>
- Enclosing interface:
NestedSequenceBiMap.Entry<K,V>
public static record NestedSequenceBiMap.Entry.SubMapEntry<K,V> (NestedSequenceBiMap<K,V> subMap)
extends Record
implements NestedSequenceBiMap.Entry<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.util.NestedSequenceBiMap.Entry
NestedSequenceBiMap.Entry.SubMapEntry<K,V>, NestedSequenceBiMap.Entry.ValueEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionSubMapEntry(NestedSequenceBiMap<K, V> subMap) Creates an instance of aSubMapEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasMap()asValue()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subMap()Returns the value of thesubMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubMapEntry
Creates an instance of aSubMapEntryrecord class.- Parameters:
subMap- the value for thesubMaprecord component
-
-
Method Details
-
asValue
- Specified by:
asValuein interfaceISequenceBiMap.IEntry<K,V, List<K>, NestedSequenceBiMap.Entry<K, V>, NestedSequenceBiMap<K, V>>
-
asMap
- Specified by:
asMapin interfaceISequenceBiMap.IEntry<K,V, List<K>, NestedSequenceBiMap.Entry<K, V>, NestedSequenceBiMap<K, V>>
-
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). -
subMap
Returns the value of thesubMaprecord component.- Returns:
- the value of the
subMaprecord component
-