Class Cut<C extends Comparable>

java.lang.Object
com.google.common.collect.Cut<C>
All Implemented Interfaces:
Serializable, Comparable<Cut<C>>
Direct Known Subclasses:
Cut.AboveAll, Cut.AboveValue, Cut.BelowAll, Cut.BelowValue

abstract class Cut<C extends Comparable> extends Object implements Comparable<Cut<C>>, Serializable
Implementation detail for the internal structure of Range instances. Represents a unique way of "cutting" a "number line" (actually of instances of type C, not necessarily "numbers") into two sections; this can be done below a certain value, above a certain value, below all values or above all values. With this object defined in this way, an interval can always be represented by a pair of Cut instances.
  • Field Details

  • Constructor Details

    • Cut

      Cut(C endpoint)
  • Method Details