Class SynchronizedMarkHolder.Kyoo<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, java.util.Queue<T>
    Enclosing class:
    SynchronizedMarkHolder

    private final class SynchronizedMarkHolder.Kyoo<T>
    extends java.util.AbstractCollection<T>
    implements java.util.Queue<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T[] elements  
      private int ri  
      private int size  
      private long wIdx  
    • Constructor Summary

      Constructors 
      Constructor Description
      Kyoo​(T[] elements, long wIdx, int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void checkSize()  
      T element()  
      java.util.Iterator<T> iterator()  
      boolean offer​(T t)  
      T peek()  
      T poll()  
      T remove()  
      int size()  
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Queue

        add
    • Field Detail

      • elements

        private final T[] elements
      • wIdx

        private final long wIdx
      • size

        private final int size
      • ri

        private int ri
    • Constructor Detail

      • Kyoo

        Kyoo​(T[] elements,
             long wIdx,
             int size)
    • Method Detail

      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.util.Collection<T>
        Specified by:
        iterator in interface java.lang.Iterable<T>
        Specified by:
        iterator in class java.util.AbstractCollection<T>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T>
        Specified by:
        size in class java.util.AbstractCollection<T>
      • offer

        public boolean offer​(T t)
        Specified by:
        offer in interface java.util.Queue<T>
      • remove

        public T remove()
        Specified by:
        remove in interface java.util.Queue<T>
      • poll

        public T poll()
        Specified by:
        poll in interface java.util.Queue<T>
      • element

        public T element()
        Specified by:
        element in interface java.util.Queue<T>
      • peek

        public T peek()
        Specified by:
        peek in interface java.util.Queue<T>
      • checkSize

        private void checkSize()