org.usergrid.persistence
Class EntityPropertyComparator

java.lang.Object
  extended by org.usergrid.persistence.EntityPropertyComparator
All Implemented Interfaces:
Comparator<Entity>

public class EntityPropertyComparator
extends Object
implements Comparator<Entity>


Constructor Summary
EntityPropertyComparator(String propertyName)
           
EntityPropertyComparator(String propertyName, boolean reverse)
           
 
Method Summary
 int compare(Entity e1, Entity e2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

EntityPropertyComparator

public EntityPropertyComparator(String propertyName)

EntityPropertyComparator

public EntityPropertyComparator(String propertyName,
                                boolean reverse)
Method Detail

compare

public int compare(Entity e1,
                   Entity e2)
Specified by:
compare in interface Comparator<Entity>


Copyright © 2013. All Rights Reserved.