Class Interval


  • public class Interval
    extends java.lang.Object
    A contiguous portion of 1D-space. Used internally by SIRtree.
    Version:
    1.7
    See Also:
    SIRtree
    • Constructor Detail

      • Interval

        public Interval​(Interval other)
      • Interval

        public Interval​(double min,
                        double max)
    • Method Detail

      • getCentre

        public double getCentre()
      • expandToInclude

        public Interval expandToInclude​(Interval other)
        Returns:
        this
      • intersects

        public boolean intersects​(Interval other)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object