Package org.apache.sis.internal.jaxb.gco
Class MultiplicityRange
java.lang.Object
org.apache.sis.internal.jaxb.gco.MultiplicityRange
A component of a multiplicity, consisting of an non-negative lower bound, and a potentially infinite upper bound.
- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integer
The lower bound.private UnlimitedInteger
The upper bound. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Creates an initially empty range.private
MultiplicityRange
(NumberRange<Integer> range) Creates a range initialized to the given value. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns a string representation for debugging purpose.(package private) NumberRange
<Integer> value()
Returns the value as a number range, ornull
if none.(package private) static MultiplicityRange
wrap
(NumberRange<Integer> range) Wraps the given integer range in multiplicity range, or returnsnull
if the given range is null.
-
Field Details
-
lower
The lower bound. -
upper
The upper bound.
-
-
Constructor Details
-
MultiplicityRange
private MultiplicityRange()Creates an initially empty range. This is invoked by JAXB at unmarshalling time. -
MultiplicityRange
Creates a range initialized to the given value.
-
-
Method Details
-
wrap
Wraps the given integer range in multiplicity range, or returnsnull
if the given range is null. -
value
NumberRange<Integer> value()Returns the value as a number range, ornull
if none. -
toString
Returns a string representation for debugging purpose.
-