Enum EndpointAccessorsRange

java.lang.Object
java.lang.Enum<EndpointAccessorsRange>
de.xima.fc.utils.range.EndpointAccessorsRange
All Implemented Interfaces:
EndpointAccessor<com.google.common.collect.Range<? extends Comparable>,Comparable>, Serializable, Comparable<EndpointAccessorsRange>

public enum EndpointAccessorsRange extends Enum<EndpointAccessorsRange> implements EndpointAccessor<com.google.common.collect.Range<? extends Comparable>,Comparable>
An enumeration with implementations of EndpointAccessors for accessing the end points of Range objects.
Since:
6.5.0
Author:
XIMA MEDIA GmbH
  • Enum Constant Details

    • LOWER_ENDPOINT

      public static final EndpointAccessorsRange LOWER_ENDPOINT
      Accessor for the lower end point of a range. The BoundType is preserved.
    • LOWER_ENDPOINT_CLOSED

      public static final EndpointAccessorsRange LOWER_ENDPOINT_CLOSED
      Accessor for the lower end point of a range. The BoundType is changed to BoundType.CLOSED.
    • LOWER_ENDPOINT_INVERTED

      public static final EndpointAccessorsRange LOWER_ENDPOINT_INVERTED
      Accessor for the lower end point of a range. The BoundType is flipped (BoundType.CLOSED. becomes BoundType.OPEN and vice-versa).
    • LOWER_ENDPOINT_OPEN

      public static final EndpointAccessorsRange LOWER_ENDPOINT_OPEN
      Accessor for the lower end point of a range. The BoundType is changed to BoundType.OPEN.
    • UPPER_ENDPOINT

      public static final EndpointAccessorsRange UPPER_ENDPOINT
      Accessor for the upper end point of a range. The BoundType is preserved.
    • UPPER_ENDPOINT_CLOSED

      public static final EndpointAccessorsRange UPPER_ENDPOINT_CLOSED
      Accessor for the upper end point of a range. The BoundType is changed to BoundType.CLOSED.
    • UPPER_ENDPOINT_INVERTED

      public static final EndpointAccessorsRange UPPER_ENDPOINT_INVERTED
      Accessor for the upper end point of a range. The BoundType is flipped (BoundType.CLOSED becomes BoundType.OPEN and vice-versa).
    • UPPER_ENDPOINT_OPEN

      public static final EndpointAccessorsRange UPPER_ENDPOINT_OPEN
      Accessor for the upper end point of a range. The BoundType is changed to BoundType.OPEN.
  • Method Details

    • values

      public static EndpointAccessorsRange[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EndpointAccessorsRange valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • lowerEndpoint

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpoint()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the lower end point of a range. The BoundType is preserved.
    • lowerEndpointClosed

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointClosed()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the lower end point of a range. The BoundType is changed to BoundType.CLOSED.
    • lowerEndpointInverted

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointInverted()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the lower end point of a range. The BoundType is flipped (BoundType.CLOSED. becomes BoundType.OPEN and vice-versa).
    • lowerEndpointOpen

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> lowerEndpointOpen()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the lower end point of a range. The BoundType is changed to BoundType.OPEN.
    • upperEndpoint

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpoint()
      Returns:
      Accessor for the upper end point of a range. The BoundType is preserved.
    • upperEndpointClosed

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointClosed()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the upper end point of a range. The BoundType is changed to BoundType.CLOSED.
    • upperEndpointInverted

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointInverted()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the upper end point of a range. The BoundType is flipped (BoundType.CLOSED becomes BoundType.OPEN and vice-versa).
    • upperEndpointOpen

      public static <C extends Comparable> EndpointAccessor<com.google.common.collect.Range<C>,C> upperEndpointOpen()
      Type Parameters:
      C - Type of the range's end points.
      Returns:
      Accessor for the upper end point of a range. The BoundType is changed to BoundType.OPEN.