Class ArrayQueue<E>

java.lang.Object
com.oracle.truffle.runtime.collection.ArrayQueue<E>

public final class ArrayQueue<E> extends Object
  • Constructor Details

    • ArrayQueue

      public ArrayQueue()
  • Method Details

    • add

      public void add(E x)
    • poll

      public E poll()
    • peek

      public E peek()
    • clear

      public void clear()
    • size

      public int size()
    • toArray

      public Object[] toArray()
    • toArray

      public <T> T[] toArray(T[] a)
    • internalCapacity

      public int internalCapacity()
    • addIndexOf

      default int addIndexOf(E x)
    • indexOf

      default int indexOf(E x)
      Returns the position in the pool, or -1 if the element is not present.