Record Class ZSetCommonUtils.ZOperationResponse
java.lang.Object
java.lang.Record
org.infinispan.server.resp.commands.sortedset.ZSetCommonUtils.ZOperationResponse
- All Implemented Interfaces:
BiConsumer<ZSetCommonUtils.ZOperationResponse, ResponseWriter>,Predicate<Object>,JavaObjectSerializer<ZSetCommonUtils.ZOperationResponse>,ResponseSerializer<ZSetCommonUtils.ZOperationResponse, ResponseWriter>
- Enclosing class:
ZSetCommonUtils
public static record ZSetCommonUtils.ZOperationResponse(Collection<ScoredValue<byte[]>> values, boolean withScores)
extends Record
implements JavaObjectSerializer<ZSetCommonUtils.ZOperationResponse>
-
Constructor Summary
ConstructorsConstructorDescriptionZOperationResponse(Collection<ScoredValue<byte[]>> values, boolean withScores) Creates an instance of aZOperationResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ZSetCommonUtils.ZOperationResponse ignore, ResponseWriter writer) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Collection<ScoredValue<byte[]>> values()Returns the value of thevaluesrecord component.booleanReturns the value of thewithScoresrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThenMethods inherited from interface org.infinispan.server.resp.serialization.JavaObjectSerializer
test
-
Constructor Details
-
ZOperationResponse
Creates an instance of aZOperationResponserecord class.- Parameters:
values- the value for thevaluesrecord componentwithScores- the value for thewithScoresrecord component
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<ZSetCommonUtils.ZOperationResponse, ResponseWriter>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
withScores
public boolean withScores()Returns the value of thewithScoresrecord component.- Returns:
- the value of the
withScoresrecord component
-