com.mangofactory.swagger.ordering
Class ResourceListingPositionalOrdering

java.lang.Object
  extended by com.google.common.collect.Ordering<com.mangofactory.swagger.models.dto.ApiListingReference>
      extended by com.mangofactory.swagger.ordering.ResourceListingPositionalOrdering
All Implemented Interfaces:
java.util.Comparator<com.mangofactory.swagger.models.dto.ApiListingReference>

public class ResourceListingPositionalOrdering
extends com.google.common.collect.Ordering<com.mangofactory.swagger.models.dto.ApiListingReference>

Orders ApiListingReference's by their position


Constructor Summary
ResourceListingPositionalOrdering()
           
 
Method Summary
 int compare(com.mangofactory.swagger.models.dto.ApiListingReference first, com.mangofactory.swagger.models.dto.ApiListingReference second)
           
 
Methods inherited from class com.google.common.collect.Ordering
allEqual, arbitrary, binarySearch, compound, compound, explicit, explicit, from, from, greatestOf, greatestOf, immutableSortedCopy, isOrdered, isStrictlyOrdered, leastOf, leastOf, lexicographical, max, max, max, max, min, min, min, min, natural, nullsFirst, nullsLast, onResultOf, reverse, sortedCopy, usingToString
 
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

ResourceListingPositionalOrdering

public ResourceListingPositionalOrdering()
Method Detail

compare

public int compare(com.mangofactory.swagger.models.dto.ApiListingReference first,
                   com.mangofactory.swagger.models.dto.ApiListingReference second)
Specified by:
compare in interface java.util.Comparator<com.mangofactory.swagger.models.dto.ApiListingReference>
Specified by:
compare in class com.google.common.collect.Ordering<com.mangofactory.swagger.models.dto.ApiListingReference>