com.mangofactory.swagger.ordering
Class ResourceListingLexicographicalOrdering

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

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

Orders ApiListingReference's Lexicographically by their paths


Constructor Summary
ResourceListingLexicographicalOrdering()
           
 
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

ResourceListingLexicographicalOrdering

public ResourceListingLexicographicalOrdering()
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>