Class ReplicatedDataSerializer.KeyComparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessageV3>
- java.lang.Object
-
- org.apache.pekko.cluster.ddata.protobuf.ReplicatedDataSerializer.KeyComparator<A>
-
- All Implemented Interfaces:
java.util.Comparator<A>
- Direct Known Subclasses:
ReplicatedDataSerializer.LWWMapEntryComparator$
,ReplicatedDataSerializer.ORMapEntryComparator$
,ReplicatedDataSerializer.ORMultiMapEntryComparator$
,ReplicatedDataSerializer.PNCounterMapEntryComparator$
- Enclosing class:
- ReplicatedDataSerializer
public abstract static class ReplicatedDataSerializer.KeyComparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessageV3> extends java.lang.Object implements java.util.Comparator<A>
-
-
Constructor Summary
Constructors Constructor Description KeyComparator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compare(A x, A y)
abstract java.lang.Object
getKey(A entry)
Get the key from the entry.
-
-
-
Method Detail
-
compare
public final int compare(A x, A y)
- Specified by:
compare
in interfacejava.util.Comparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessageV3>
-
getKey
public abstract java.lang.Object getKey(A entry)
Get the key from the entry. The key may be a String, Int, Long, or OtherMessage- Parameters:
entry
- The protobuf entry used with Map types- Returns:
- The Key
-
-