Packages

  • package root
    Definition Classes
    root
  • package java
    Definition Classes
    root
  • package util
    Definition Classes
    java
  • class ArrayDeque[E] extends AbstractCollection[E] with Deque[E] with Cloneable with Serializable

    Resizable-array implementation of the Deque interface.

    Resizable-array implementation of the Deque interface. Array deques have no capacity restrictions; they grow as necessary to support usage. They are not thread-safe; in the absence of external synchronization, they do not support concurrent access by multiple threads. Null elements are prohibited. This class is likely to be faster than java.util.Stack when used as a stack, and faster than LinkedList when used as a queue.

    Exceptions include remove, removeFirstOccurrence, removeLastOccurrence, contains, iterator.remove(), and the bulk operations, all of which run in linear time.

    The iterators returned by this class's iterator method are fail-fast: If the deque is modified at any time after the iterator is created, in any way except through the iterator's own remove method, the iterator will generally throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.

    Note that the fail-fast behavior of an iterator cannot be guaranteed as it is, generally speaking, impossible to make any hard guarantees in the presence of unsynchronized concurrent modification. Fail-fast iterators throw ConcurrentModificationException on a best-effort basis. Therefore, it would be wrong to write a program that depended on this exception for its correctness: the fail-fast behavior of iterators should be used only to detect bugs.

    This class and its iterator implement all of the optional methods of the Collection and Iterator interfaces.

    This class is a member of the <a href="/java.base/java/util/package-summary.html#CollectionsFramework"> Java Collections Framework.

    Definition Classes
    util
    Since

    1.6

  • DeqSpliterator
c

java.util.ArrayDeque

DeqSpliterator

final class DeqSpliterator extends Spliterator[E]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeqSpliterator
  2. Spliterator
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DeqSpliterator(origin: Int, fence: Int)

    Constructs spliterator over the given range.

  2. new DeqSpliterator()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def characteristics(): Int
    Definition Classes
    DeqSpliteratorSpliterator
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def estimateSize(): Long
    Definition Classes
    DeqSpliteratorSpliterator
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def forEachRemaining(action: Consumer[_ >: E]): Unit
    Definition Classes
    DeqSpliteratorSpliterator
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getComparator(): Comparator[_ >: E]
    Definition Classes
    Spliterator
  14. def getExactSizeIfKnown(): Long
    Definition Classes
    Spliterator
  15. def hasCharacteristics(chars: Int): Boolean
    Definition Classes
    Spliterator
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def tryAdvance(action: Consumer[_ >: E]): Boolean
    Definition Classes
    DeqSpliteratorSpliterator
  24. def trySplit(): DeqSpliterator
    Definition Classes
    DeqSpliteratorSpliterator
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Spliterator[E]

Inherited from AnyRef

Inherited from Any

Ungrouped