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
  • 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

      public Interval(Double lower, Double upper)
      full parameter constructor.
      Parameters:
      lower - .
      upper - .
    • Interval

      public Interval(Interval other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • updateUsing

      public void updateUsing(Interval other)
      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

      public Double getLower()
      Returns lower Attribute.
      Returns:
      lower Attribute
    • setLower

      public void setLower(Double pLower)
      Set lower Attribute.
      Parameters:
      pLower - value to set
    • withLower

      public Interval withLower(Double pLower)
      fluent setter for lower Attribute.
      Parameters:
      pLower - value to set
      Returns:
      Interval
    • getUpper

      public Double getUpper()
      Returns upper Attribute.
      Returns:
      upper Attribute
    • setUpper

      public void setUpper(Double pUpper)
      Set upper Attribute.
      Parameters:
      pUpper - value to set
    • withUpper

      public Interval withUpper(Double pUpper)
      fluent setter for upper Attribute.
      Parameters:
      pUpper - value to set
      Returns:
      Interval
    • createInterval

      public static Interval createInterval(Consumer<Interval.IntervalBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations