Package com.oss.metadata
Class Bounds
java.lang.Object
com.oss.metadata.Bounds
- Direct Known Subclasses:
RangeList
The Bounds class encapsulates information about bounds for
bounded (constrained) types. This information is useful for PER.
- Since:
- ASN.1/Java 2.1
-
Method Summary
Modifier and TypeMethodDescriptionlong
Return the lower bound of the type.long
Return the upper bound of the type.boolean
Return whether the type has a lower bound.boolean
Return whether the type has an upper bound.
-
Method Details
-
hasLowerBound
public boolean hasLowerBound()Return whether the type has a lower bound.- Returns:
- true if lower bound is finite.
-
hasUpperBound
public boolean hasUpperBound()Return whether the type has an upper bound.- Returns:
- true if upper bound is finite.
-
getLowerBound
public long getLowerBound()Return the lower bound of the type.- Returns:
- lower bound.
-
getUpperBound
public long getUpperBound()Return the upper bound of the type.- Returns:
- upper bound.
-