Class RegionComparator<T>

  • All Implemented Interfaces:
    java.util.Comparator<T>

    public class RegionComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      RegionComparator​(com.google.common.base.Function<? super T,​? extends org.eclipse.xtext.util.ITextRegion> regionAccess)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T t1, T t2)  
      com.google.common.base.Function<? super T,​? extends org.eclipse.xtext.util.ITextRegion> getRegionAccess()  
      • 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • RegionComparator

        public RegionComparator​(com.google.common.base.Function<? super T,​? extends org.eclipse.xtext.util.ITextRegion> regionAccess)
    • Method Detail

      • getRegionAccess

        public com.google.common.base.Function<? super T,​? extends org.eclipse.xtext.util.ITextRegion> getRegionAccess()
      • compare

        public int compare​(T t1,
                           T t2)
        Specified by:
        compare in interface java.util.Comparator<T>