Class ITaskQueue.Single<T>

  • All Implemented Interfaces:
    ITaskQueue<T,​T>
    Enclosing interface:
    ITaskQueue<T,​F>

    public static final class ITaskQueue.Single<T>
    extends java.lang.Object
    implements ITaskQueue<T,​T>
    • Field Detail

      • queue

        private final java.util.Queue<T> queue
    • Constructor Detail

      • Single

        public Single​(java.util.Queue<T> p_i50962_1_)
    • Method Detail

      • pop

        @Nullable
        public T pop()
        Specified by:
        pop in interface ITaskQueue<T,​T>
      • push

        public boolean push​(T p_212828_1_)
        Specified by:
        push in interface ITaskQueue<T,​T>