Interface Queue4<E>

    • Method Detail

      • add

        void add​(E obj)
      • next

        E next()
      • hasNext

        boolean hasNext()
      • nextMatching

        E nextMatching​(Predicate4<E> condition)
        Returns the next object in the queue that matches the specified condition. The operation is always NON-BLOCKING.
        Parameters:
        condition - the object must satisfy to be returned
        Returns:
        the object satisfying the condition or null if none does