Class EntityProtoComparators.EntityProtoComparator
- java.lang.Object
-
- com.google.appengine.api.datastore.EntityProtoComparators.EntityProtoComparator
-
- All Implemented Interfaces:
Comparator<com.google.storage.onestore.v3.OnestoreEntity.EntityProto>
- Enclosing class:
- EntityProtoComparators
public static final class EntityProtoComparators.EntityProtoComparator extends Object
A comparator forOnestoreEntity.EntityProtoobjects with the same ordering asEntityComparator.
-
-
Constructor Summary
Constructors Constructor Description EntityProtoComparator(List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> orders)EntityProtoComparator(List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> orders, List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Filter> filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(EntityT entityA, EntityT entityB)List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order>getAdjustedOrders()booleanmatches(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto)booleanmatches(com.google.storage.onestore.v3.OnestoreEntity.Property prop)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
EntityProtoComparator
public EntityProtoComparator(List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> orders)
-
-
Method Detail
-
getAdjustedOrders
public List<com.google.apphosting.datastore.DatastoreV3Pb.Query.Order> getAdjustedOrders()
-
matches
public boolean matches(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto)
-
matches
public boolean matches(com.google.storage.onestore.v3.OnestoreEntity.Property prop)
-
compare
public int compare(EntityT entityA, EntityT entityB)- Specified by:
comparein interfaceComparator<EntityT>
-
-