Interface ClusteringBoundary<V>

All Superinterfaces:
Clusterable<V>, ClusteringBoundOrBoundary<V>, ClusteringPrefix<V>, IMeasurableMemory
All Known Implementing Classes:
ArrayClusteringBoundary, BufferClusteringBoundary

public interface ClusteringBoundary<V> extends ClusteringBoundOrBoundary<V>
The threshold between two different ranges, i.e. a shortcut for the combination of two ClusteringBounds -- one specifying the end of one of the ranges, and its (implicit) complement specifying the beginning of the other.
  • Method Details

    • invert

      Description copied from interface: ClusteringBoundOrBoundary
      Returns the inverse of the current bound.

      This invert both start into end (and vice-versa) and inclusive into exclusive (and vice-versa).

      Specified by:
      invert in interface ClusteringBoundOrBoundary<V>
      Returns:
      the invert of this bound. For instance, if this bound is an exlusive start, this return an inclusive end with the same values.
    • openBound

      ClusteringBound<V> openBound(boolean reversed)
    • closeBound

      ClusteringBound<V> closeBound(boolean reversed)
    • create

      static <V> ClusteringBoundary<V> create(ClusteringPrefix.Kind kind, ClusteringPrefix<V> from)
    • asStartBound

      default ClusteringBound<V> asStartBound()
      Description copied from interface: ClusteringPrefix
      Returns this prefix as a start bound. If this prefix is a bound, just returns it asserting that it is a start bound. If this prefix is a clustering, returns an included start bound. If this prefix is a boundary, returns an open bound of it
      Specified by:
      asStartBound in interface ClusteringPrefix<V>
    • asEndBound

      default ClusteringBound<V> asEndBound()
      Description copied from interface: ClusteringPrefix
      Returns this prefix as an end bound. If this prefix is a bound, just returns it asserting that it is an end bound. If this prefix is a clustering, returns an included end bound. In this prefix is a boundary, returns a close bound of it.
      Specified by:
      asEndBound in interface ClusteringPrefix<V>