Class IntervalWithBounds


  • public class IntervalWithBounds
    extends java.lang.Object
    Represents a collapsed leaf node in the fixed tree range representation.
    Author:
    Magnar Nedland, bjorncs
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(int value)
      Checks if a value is contained within the specified bounds.
      boolean equals​(java.lang.Object o)  
      int getBounds()  
      int getInterval()
      16 MSB represents interval begin, 16 LSB represents interval end.
      int hashCode()  
      boolean hasValue()  
      void nextValue()  
      void setIntervalArray​(int[] intervalBoundsArray, int arrayIndex)  
      java.util.stream.Stream<java.lang.Integer> stream()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IntervalWithBounds

        public IntervalWithBounds()
      • IntervalWithBounds

        public IntervalWithBounds​(int interval,
                                  int bounds)
    • Method Detail

      • setIntervalArray

        public void setIntervalArray​(int[] intervalBoundsArray,
                                     int arrayIndex)
      • hasValue

        public boolean hasValue()
      • nextValue

        public void nextValue()
      • stream

        public java.util.stream.Stream<java.lang.Integer> stream()
      • getInterval

        public int getInterval()
        16 MSB represents interval begin, 16 LSB represents interval end.
      • getBounds

        public int getBounds()
      • contains

        public boolean contains​(int value)
        Checks if a value is contained within the specified bounds.
        Parameters:
        value - Value to check against
        Returns:
        true if value is contained within the specified bounds
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object