Package org.ivoa.dm.adqlgeom
Class Interval
java.lang.Object
org.ivoa.dm.adqlgeom.Interval
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="adqlgeom:Interval",
role=dataType)
public class Interval
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
a set of numeric values defined by a lower and upper bound (bounds included: [a,b]).
dataType: Interval
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Interval, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Intervalcreate a Interval in functional builder style.voidgetLower()Returns lower Attribute.getUpper()Returns upper Attribute.voidSet lower Attribute.voidSet upper Attribute.voidupdateUsing(Interval other) Update this object with the content of the given object.fluent setter for lower Attribute.fluent setter for upper Attribute.
-
Field Details
-
lower
@VoDml(id="adqlgeom:Interval.lower", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double lower. : Attribute lower : multiplicity 1 -
upper
@VoDml(id="adqlgeom:Interval.upper", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double upper. : Attribute upper : multiplicity 1
-
-
Constructor Details
-
Interval
public Interval()Creates a new Interval -
Interval
full parameter constructor.- Parameters:
lower- .upper- .
-
Interval
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getLower
Returns lower Attribute.- Returns:
- lower Attribute
-
setLower
Set lower Attribute.- Parameters:
pLower- value to set
-
withLower
fluent setter for lower Attribute.- Parameters:
pLower- value to set- Returns:
- Interval
-
getUpper
Returns upper Attribute.- Returns:
- upper Attribute
-
setUpper
Set upper Attribute.- Parameters:
pUpper- value to set
-
withUpper
fluent setter for upper Attribute.- Parameters:
pUpper- value to set- Returns:
- Interval
-
createInterval
create a Interval in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-