Class LeafNode

  • All Implemented Interfaces:
    Node

    public class LeafNode
    extends java.lang.Object
    implements Node
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean currentTimeIs​(long time)
      Check whether the current time equals the given time.
      java.lang.Object currentValue()
      Function for getting the value at the given time.
      NodeType getType()  
      boolean hasNext()  
      long next()  
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • hasNext

        public boolean hasNext()
                        throws java.io.IOException
        Specified by:
        hasNext in interface Node
        Throws:
        java.io.IOException
      • next

        public long next()
                  throws java.io.IOException
        Specified by:
        next in interface Node
        Throws:
        java.io.IOException
      • currentTimeIs

        public boolean currentTimeIs​(long time)
        Check whether the current time equals the given time.
        Parameters:
        time - the given time
        Returns:
        True if the current time equals the given time. False if not.
      • currentValue

        public java.lang.Object currentValue()
        Function for getting the value at the given time.