Class AbstractRange<N>

java.lang.Object
org.omnifaces.utils.data.AbstractRange<N>
All Implemented Interfaces:
Serializable, Range<N>

public abstract class AbstractRange<N> extends Object implements Serializable, Range<N>
See Also:
  • Constructor Details

    • AbstractRange

      public AbstractRange()
  • Method Details

    • intersects

      public boolean intersects(Range<N> other)
      Description copied from interface: Range
      Check if the given range intersects the current range.
      Specified by:
      intersects in interface Range<N>
      Parameters:
      other - the range to check against the current range
      Returns:
      true if both ranges intersect and false otherwise
    • compare

      protected abstract int compare(N left, N right)
    • contains

      public boolean contains(N value)
      Description copied from interface: Range
      Check if a given value is contained within this range
      Specified by:
      contains in interface Range<N>
      Parameters:
      value - the value to check
      Returns:
      true if the value is contained by this range and false otherwise
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object