Record Class PriorityQueueConfig
java.lang.Object
java.lang.Record
com.loomcache.common.config.PriorityQueueConfig
- Record Components:
priorityComparatorClassName- optional comparator class name used to order items within the same numeric priority
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPriorityQueueConfig(@Nullable String priorityComparatorClassName) Creates an instance of aPriorityQueueConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PriorityQueueConfig.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.boolean@Nullable StringReturns the value of thepriorityComparatorClassNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
PriorityQueueConfig
Creates an instance of aPriorityQueueConfigrecord class.- Parameters:
priorityComparatorClassName- the value for thepriorityComparatorClassNamerecord component
-
-
Method Details
-
hasPriorityComparatorClassName
public boolean hasPriorityComparatorClassName() -
builder
-
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). -
priorityComparatorClassName
Returns the value of thepriorityComparatorClassNamerecord component.- Returns:
- the value of the
priorityComparatorClassNamerecord component
-