类 OneshotCache<T>

  • 类型参数:
    T - 泛型
    所有已实现的接口:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.Deque<T>, java.util.List<T>, java.util.Queue<T>

    public class OneshotCache<T>
    extends java.util.LinkedList<T>
    implements java.lang.Cloneable
    定长的环形队列
    另请参阅:
    序列化表格
    • 字段概要

      • 从类继承的字段 java.util.AbstractList

        modCount
    • 构造器概要

      构造器 
      构造器 说明
      OneshotCache​(int size)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      OneshotCache clone()  
      boolean isValid()  
      OneshotCache.OneshotIterator iterator()  
      boolean offer​(T o)  
      T poll()  
      • 从类继承的方法 java.util.LinkedList

        add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offerFirst, offerLast, peek, peekFirst, peekLast, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
      • 从类继承的方法 java.util.AbstractList

        equals, hashCode, listIterator, removeRange, subList
      • 从类继承的方法 java.util.AbstractCollection

        containsAll, isEmpty, removeAll, retainAll, toString
      • 从类继承的方法 java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • 从接口继承的方法 java.util.Collection

        parallelStream, removeIf, stream, toArray
      • 从接口继承的方法 java.lang.Iterable

        forEach
      • 从接口继承的方法 java.util.List

        containsAll, equals, hashCode, isEmpty, listIterator, removeAll, replaceAll, retainAll, sort, subList
    • 构造器详细资料

      • OneshotCache

        public OneshotCache​(int size)
    • 方法详细资料

      • offer

        public boolean offer​(T o)
        指定者:
        offer 在接口中 java.util.Deque<T>
        指定者:
        offer 在接口中 java.util.Queue<T>
        覆盖:
        offer 在类中 java.util.LinkedList<T>
      • poll

        public T poll()
        指定者:
        poll 在接口中 java.util.Deque<T>
        指定者:
        poll 在接口中 java.util.Queue<T>
        覆盖:
        poll 在类中 java.util.LinkedList<T>
      • isValid

        public boolean isValid()
      • iterator

        public OneshotCache.OneshotIterator iterator()
        指定者:
        iterator 在接口中 java.util.Collection<T>
        指定者:
        iterator 在接口中 java.util.Deque<T>
        指定者:
        iterator 在接口中 java.lang.Iterable<T>
        指定者:
        iterator 在接口中 java.util.List<T>
        覆盖:
        iterator 在类中 java.util.AbstractSequentialList<T>
      • clone

        public OneshotCache clone()
        覆盖:
        clone 在类中 java.util.LinkedList<T>