Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

EntityProtoComparators.EntityProtoComparator (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.

Class EntityProtoComparators.EntityProtoComparator

  • java.lang.Object
  • All Implemented Interfaces:
    Enclosing class:

    public static final class EntityProtoComparators.EntityProtoComparator
    extends java.lang.Object
    A comparator for objects with the same ordering as EntityComparator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(EntityT entityA, EntityT entityB) 
      java.util.List<Order> getAdjustedOrders() 
      boolean matches(OnestoreEntity.EntityProto proto) 
      boolean matches(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

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • EntityProtoComparator

        public EntityProtoComparator(java.util.List<Order> orders)
      • EntityProtoComparator

        public EntityProtoComparator(java.util.List<Order> orders,
                                     java.util.List<Filter> filters)
    • Method Detail

      • getAdjustedOrders

        public java.util.List<Order> getAdjustedOrders()
      • matches

        public boolean matches(OnestoreEntity.EntityProto proto)
      • matches

        public boolean matches(OnestoreEntity.Property prop)
      • compare

        public int compare(EntityT entityA,
                           EntityT entityB)
        Specified by:
        compare in interface java.util.Comparator<EntityT>