Class ReplicatedDataSerializer.KeyComparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessage>
java.lang.Object
org.apache.pekko.cluster.ddata.protobuf.ReplicatedDataSerializer.KeyComparator<A>
- All Implemented Interfaces:
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.GeneratedMessage>
extends Object
implements Comparator<A>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
KeyComparator
public KeyComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<A extends org.apache.pekko.protobufv3.internal.GeneratedMessage>
-
getKey
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
-