Package org.teavm.classlib.java.util
Interface TCollection<E>
- All Superinterfaces:
TIterable<E>
- All Known Subinterfaces:
TBlockingQueue<E>
,TDeque<E>
,TList<E>
,TNavigableSet<E>
,TQueue<E>
,TSequencedCollection<E>
,TSequencedSet<E>
,TSet<E>
,TSortedSet<E>
- All Known Implementing Classes:
TAbstractCollection
,TAbstractList
,TAbstractQueue
,TAbstractSequentialList
,TAbstractSet
,TArrayBlockingQueue
,TArrayDeque
,TArrayList
,TCopyOnWriteArrayList
,THashSet
,TLinkedBlockingDeque
,TLinkedHashSet
,TLinkedList
,TPriorityQueue
,TStack
,TTemplateCollections.ImmutableArrayList
,TTreeSet
,TVector
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(TCollection<? extends E> c) void
clear()
boolean
boolean
containsAll
(TCollection<?> c) boolean
isEmpty()
boolean
boolean
removeAll
(TCollection<?> c) default boolean
boolean
retainAll
(TCollection<?> c) int
size()
default TSpliterator<E>
stream()
Object[]
toArray()
default <T> T[]
toArray
(IntFunction<T[]> gen) <T> T[]
toArray
(T[] a)
-
Method Details
-
size
int size() -
isEmpty
boolean isEmpty() -
contains
-
toArray
Object[] toArray() -
toArray
<T> T[] toArray(T[] a) -
toArray
-
add
-
remove
-
containsAll
-
addAll
-
removeAll
-
retainAll
-
clear
void clear() -
spliterator
- Specified by:
spliterator
in interfaceTIterable<E>
-
stream
-
removeIf
-