Class NetworkBuffer.DoubleInterval

  • Enclosing class:
    NetworkBuffer

    public static class NetworkBuffer.DoubleInterval
    extends java.lang.Object
    This class defines a double interval.
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleInterval​(double start, double end)
      Constructs a double interval.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getEnd()
      Returns the end value of the interval.
      double getStart()
      Returns the start value of the interval.
      boolean isBackward()  
      boolean isForward()
      Returns true if the end value is greater than the start value; false otherwise.
      boolean isPoint()  
      double length()
      Returns the length of the interval.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DoubleInterval

        public DoubleInterval​(double start,
                              double end)
        Constructs a double interval.
        Parameters:
        start -
        end -
    • Method Detail

      • getStart

        public double getStart()
        Returns the start value of the interval.
        Returns:
      • getEnd

        public double getEnd()
        Returns the end value of the interval.
        Returns:
      • length

        public double length()
        Returns the length of the interval.
        Returns:
      • isForward

        public boolean isForward()
        Returns true if the end value is greater than the start value; false otherwise.
        Returns:
      • isBackward

        public boolean isBackward()
      • isPoint

        public boolean isPoint()