Class List.PageComparator<P extends Page>

  • All Implemented Interfaces:
    java.util.Comparator<P>
    Enclosing class:
    List

    public class List.PageComparator<P extends Page>
    extends java.lang.Object
    implements java.util.Comparator<P>
    Compares pages with each other by property.
    • Constructor Summary

      Constructors 
      Constructor Description
      PageComparator​(java.lang.String prop)
      Creates a PageComparator instance using the specified property for comparison.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(P p1, P p2)
      • Methods inherited from class java.lang.Object

        equals, 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

      • PageComparator

        public PageComparator​(java.lang.String prop)
        Creates a PageComparator instance using the specified property for comparison.
        Parameters:
        prop - The name of the property
    • Method Detail

      • compare

        public int compare​(P p1,
                           P p2)
        Specified by:
        compare in interface java.util.Comparator<P extends Page>