Class CollectionAsSet<K>
java.lang.Object
org.magicwerk.brownies.collections.CollectionAsSet<K>
- All Implemented Interfaces:
Iterable<K>, Collection<K>, Set<K>
- Direct Known Subclasses:
KeyCollectionAsSet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends K> c) (package private) voidvoidclear()booleanbooleancontainsAll(Collection<?> c) booleaninthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
spliterator
-
Field Details
-
coll
Collection<K> coll -
immutable
boolean immutable
-
-
Constructor Details
-
CollectionAsSet
-
-
Method Details
-
equals
-
hashCode
-
toString
-
size
-
isEmpty
-
contains
-
toArray
-
toArray
-
containsAll
- Specified by:
containsAllin interfaceCollection<K>- Specified by:
containsAllin interfaceSet<K>
-
iterator
-
checkMutable
void checkMutable() -
add
-
addAll
-
clear
-
remove
-
removeAll
-
retainAll
-