Class Bound<T extends Comparable<T>>
- java.lang.Object
-
- org.opennms.netmgt.flows.classification.internal.decision.Bound<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bound.Any<T extends Comparable<T>>
static class
Bound.Eq<T extends Comparable<T>>
static class
Bound.Gt<T extends Comparable<T>>
static class
Bound.In<T extends Comparable<T>>
static class
Bound.Lt<T extends Comparable<T>>
-
Constructor Summary
Constructors Constructor Description Bound()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
canBeRestrictedBy(T value)
Checks if this bound can be restricted by the given value.abstract Bound<T>
eq(T value)
Restricts this bound such that it includes only the given value.abstract Bound<T>
gt(T value)
Restricts this bound such that it includes only values that are greater than the given value.abstract boolean
includes(T value)
Checks if this bound includes the given value.abstract Bound<T>
lt(T value)
Restricts this bound such that it includes only values that are less than the given value.abstract boolean
overlaps(T begin, T end)
Checks if this bound overlaps with the given range.
-
-
-
Field Detail
-
ANY
public static Bound.Any ANY
-
-
Method Detail
-
lt
public abstract Bound<T> lt(T value)
Restricts this bound such that it includes only values that are less than the given value.
-
eq
public abstract Bound<T> eq(T value)
Restricts this bound such that it includes only the given value.
-
gt
public abstract Bound<T> gt(T value)
Restricts this bound such that it includes only values that are greater than the given value.
-
includes
public abstract boolean includes(T value)
Checks if this bound includes the given value.
-
canBeRestrictedBy
public abstract boolean canBeRestrictedBy(T value)
Checks if this bound can be restricted by the given value.
-
-