public interface KTypeCollection<KType> extends KTypeContainer<KType>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all elements from this collection.
|
int |
removeAll(KTypeLookupContainer<? extends KType> c)
Removes all elements in this collection that are present
in
c . |
int |
removeAll(KTypePredicate<? super KType> predicate)
Removes all elements in this collection for which the
given predicate returns
true . |
int |
removeAllOccurrences(KType e)
Removes all occurrences of
e from this collection. |
int |
retainAll(KTypeLookupContainer<? extends KType> c)
Keeps all elements in this collection that are present
in
c . |
int |
retainAll(KTypePredicate<? super KType> predicate)
Keeps all elements in this collection for which the
given predicate returns
true . |
int removeAllOccurrences(KType e)
e
from this collection.e
- Element to be removed from this collection, if present.int removeAll(KTypeLookupContainer<? extends KType> c)
c
. Runs in time proportional to the number
of elements in this collection. Equivalent of sets difference.int removeAll(KTypePredicate<? super KType> predicate)
true
.int retainAll(KTypeLookupContainer<? extends KType> c)
c
. Runs in time proportional to the number
of elements in this collection. Equivalent of sets intersection.int retainAll(KTypePredicate<? super KType> predicate)
true
.void clear()
Copyright © 2014 Carrot Search s.c.. All rights reserved.