Record Class EvictionStrategy.EvictionState<K>
java.lang.Object
java.lang.Record
com.loomcache.server.datastructures.EvictionStrategy.EvictionState<K>
- Enclosing interface:
EvictionStrategy<K>
-
Constructor Summary
Constructors -
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.keys()Returns the value of thekeysrecord component.metadata()Returns the value of themetadatarecord component.@Nullable LongReturns the value of theselectionStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvictionState
Creates an instance of aEvictionStaterecord class.- Parameters:
keys- the value for thekeysrecord componentmetadata- the value for themetadatarecord componentselectionState- the value for theselectionStaterecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
keys
-
metadata
-
selectionState
Returns the value of theselectionStaterecord component.- Returns:
- the value of the
selectionStaterecord component
-