package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- abstract class AbstractCollection[E] extends Collection[E]
- abstract class AbstractList[E] extends AbstractCollection[E] with List[E]
- abstract class AbstractMap[K, V] extends Map[K, V]
- abstract class AbstractQueue[E] extends AbstractCollection[E] with Queue[E]
- abstract class AbstractSequentialList[E] extends AbstractList[E]
- abstract class AbstractSet[E] extends AbstractCollection[E] with Set[E]
- 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 thanLinkedList
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 ownremove
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
andIterator
interfaces.This class is a member of the <a href="/java.base/java/util/package-summary.html#CollectionsFramework"> Java Collections Framework.
- Since
1.6
- class ArrayList[E] extends AbstractList[E] with List[E] with RandomAccess with Cloneable with Serializable
- class BitSet extends Serializable with Cloneable
- trait Collection[E] extends Iterable[E]
- trait Comparator[A] extends AnyRef
- class ConcurrentModificationException extends RuntimeException
- class Date extends Serializable with Cloneable with Comparable[Date]
Ported from Scala JS and Apache Harmony
Ported from Scala JS and Apache Harmony
- omits deprecated methods
- toString code created ab ovo for Scala Native.
- trait Deque[E] extends Queue[E] with SequencedCollection[E]
- abstract class Dictionary[K, V] extends AnyRef
- class DoubleSummaryStatistics extends AnyRef
- class DuplicateFormatFlagsException extends IllegalFormatException
- class EmptyStackException extends RuntimeException
- final class EnumSet[E <: _Enum[E]] extends AbstractSet[E] with Cloneable with Serializable
- trait Enumeration[E] extends AnyRef
- class FormatFlagsConversionMismatchException extends IllegalFormatException
- trait Formattable extends AnyRef
- final class Formatter extends FormatterImpl
- class FormatterClosedException extends IllegalStateException
- abstract class FormatterCompanionImpl extends AnyRef
- class HashMap[K, V] extends AbstractMap[K, V] with Serializable with Cloneable
- class HashSet[E] extends AbstractSet[E] with Set[E] with Cloneable with Serializable
- class Hashtable[K, V] extends Dictionary[K, V] with Map[K, V] with Cloneable with Serializable
- class IdentityHashMap[K, V] extends AbstractMap[K, V] with Map[K, V] with Serializable with Cloneable
- class IllegalFormatCodePointException extends IllegalFormatException
- class IllegalFormatConversionException extends IllegalFormatException
- class IllegalFormatException extends IllegalArgumentException
- class IllegalFormatFlagsException extends IllegalFormatException
- class IllegalFormatPrecisionException extends IllegalFormatException
- class IllegalFormatWidthException extends IllegalFormatException
- class IllformedLocaleException extends RuntimeException
- class InputMismatchException extends NoSuchElementException
- class IntSummaryStatistics extends AnyRef
- class InvalidPropertiesFormatException extends IOException
- trait Iterator[E] extends AnyRef
- class LinkedHashMap[K, V] extends HashMap[K, V] with SequencedMap[K, V]
- class LinkedHashSet[E] extends HashSet[E] with SequencedSet[E] with Cloneable with Serializable
- class LinkedList[E] extends AbstractSequentialList[E] with List[E] with Deque[E] with Cloneable with Serializable
- trait List[E] extends SequencedCollection[E]
- trait ListIterator[E] extends Iterator[E]
- class LongSummaryStatistics extends AnyRef
- trait Map[K, V] extends AnyRef
- class MissingFormatArgumentException extends IllegalFormatException
- class MissingFormatWidthException extends IllegalFormatException
- class MissingResourceException extends RuntimeException
- trait NavigableMap[K, V] extends SortedMap[K, V]
- trait NavigableSet[E] extends SortedSet[E]
- class NoSuchElementException extends RuntimeException
- final class Optional[T] extends AnyRef
- final class OptionalDouble extends AnyRef
- final class OptionalInt extends AnyRef
- final class OptionalLong extends AnyRef
- trait PrimitiveIterator[T, T_CONS] extends Iterator[T]
- class PriorityQueue[E] extends AbstractQueue[E] with Serializable
- class Properties extends Hashtable[AnyRef, AnyRef]
- trait Queue[E] extends Collection[E]
- class Random extends Serializable
Ported from Apache Harmony and described by Donald E.
Ported from Apache Harmony and described by Donald E. Knuth in The Art of Computer Programming, Volume 2: Seminumerical Algorithms, section 3.2.1.
- trait RandomAccess extends AnyRef
- trait SequencedCollection[E] extends Collection[E]
- trait SequencedMap[K, V] extends Map[K, V]
- trait SequencedSet[E] extends SequencedCollection[E] with Set[E]
- class ServiceConfigurationError extends Error
- final class ServiceLoader[S <: AnyRef] extends Iterable[S]
- trait Set[E] extends Collection[E]
- trait SortedMap[K, V] extends Map[K, V] with SequencedMap[K, V]
- trait SortedSet[E] extends Set[E] with SequencedSet[E]
- trait Spliterator[T] extends AnyRef
- final class SplittableRandom extends RandomGenerator
- final class StringJoiner extends AnyRef
- class StringTokenizer extends Enumeration[AnyRef]
- class TooManyListenersException extends Exception
- class TreeMap[K, V] extends AbstractMap[K, V] with NavigableMap[K, V] with Cloneable with Serializable
- class TreeSet[E] extends AbstractSet[E] with NavigableSet[E] with Cloneable with Serializable
- final class UUID extends Serializable with Comparable[UUID]
- class UnknownFormatConversionException extends IllegalFormatException
- class UnknownFormatFlagsException extends IllegalFormatException
- class Vector[E <: AnyRef] extends AbstractList[E] with List[E] with RandomAccess with Cloneable with Serializable
- Annotations
- @SerialVersionUID()
- class WeakHashMap[K, V] extends AbstractMap[K, V] with Serializable with Cloneable
Value Members
- object AbstractMap
- object ArrayDeque extends Serializable
- object Arrays
- object Base64
- object Collections
- object Comparator
- object Date extends Serializable
- object EnumSet extends Serializable
- object FormattableFlags
- object Formatter extends FormatterCompanionImpl
- object FormatterImpl extends FormatterCompanionImpl
- object HashMap extends Serializable
- object IdentityHashMap extends Serializable
- object LinkedHashMap extends Serializable
- object LinkedList extends Serializable
- object Map
- object Objects
- object Optional
- object OptionalDouble
- object OptionalInt
- object OptionalLong
- object PrimitiveIterator
- object ServiceLoader
- object Spliterator
- object Spliterators
This is a basic, limit implementation of Spliterators.
This is a basic, limit implementation of Spliterators. It is a basis for further Scala Native development, especially in the java.util.concurrent package.
It is most empathically NOT intended for production use.
The limitations of the this implementation may not be as strong as they appear at first blush. Many/most classes which extend Spliterator (no s) supply more competent and efficient implementations.
The implementation of methods on Spliterators are, to current knowledge, robust. Many of these methods return spliterators. Those spliterators have some known limitations and may have others.
Future evolutions should, over time, remove these limitations:
- spliterators specified by Java as late-binding may not be late-binding.
- spliterators never check for concurrent modification.
- A number of spliterator methods have JVM descriptions of what happens after iteration starts and one of certain methods, say, trySplit() is called. This implementation may not follow the JVM description. Even in Java, it is better to never trySplit() after having begun using a spliterator to iterate.
Also noted:
- Java documents that spliterators need not be thread-safe. This implementation follows that guidance.
- object UUID extends Serializable
- object Vector extends Serializable
- Annotations
- @SerialVersionUID()
- object WeakHashMap extends Serializable
- object WindowsHelperMethods
Windows implementation specific helper methods, not available in public API (javalib does not contain them in published jar) Not made
java
package private only because of usage insidescala.scalanative.nio.fs