Class TimeSelector


  • public class TimeSelector
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeSelector​(int defaultCapacity, boolean isAscending)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(long time)  
      void clear()  
      long first()  
      boolean isEmpty()  
      long pollFirst()  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • TimeSelector

        public TimeSelector​(int defaultCapacity,
                            boolean isAscending)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • size

        public int size()
      • add

        public void add​(long time)
      • pollFirst

        public long pollFirst()
      • first

        public long first()
      • clear

        public void clear()
      • toString

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