Class AbstractSpecialisedImmutableSet<K>
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
io.usethesource.capsule.util.collection.AbstractImmutableSet<K>
io.usethesource.capsule.util.collection.AbstractSpecialisedImmutableSet<K>
- All Implemented Interfaces:
Set<K>, Set.Immutable<K>, SetEq<K>, SetEq.Immutable<K>, Serializable, Cloneable, Iterable<K>, Collection<K>, Set<K>
public abstract class AbstractSpecialisedImmutableSet<K>
extends AbstractImmutableSet<K>
implements Set.Immutable<K>, Cloneable, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Set
Set.Immutable<K>, Set.Transient<K>Nested classes/interfaces inherited from interface SetEq
SetEq.Immutable<K>, SetEq.Transient<K> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__insertAll(Set<? extends K> set) __insertAllEquivalent(Set<? extends K> set, EqualityComparator<Object> cmp) __removeAll(Set<? extends K> set) __removeAllEquivalent(Set<? extends K> set, EqualityComparator<Object> cmp) __retainAll(Set<? extends K> set) __retainAllEquivalent(Set.Transient<? extends K> set, EqualityComparator<Object> cmp) booleanbooleanaddAll(Collection<? extends K> c) voidclear()clone()booleanbooleanequivalent(Object other, EqualityComparator<Object> cmp) booleanisEmpty()booleaniterator()private static <K> Set.Immutable<K> of()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) static <K> Set.Immutable<K> setOf()static <K> Set.Immutable<K> static <K> Set.Immutable<K> setOf(K key1) static <K> Set.Immutable<K> setOf(K key1, K key2) static <K> Set.Immutable<K> setOf(K key1, K key2, K key3) static <K> Set.Immutable<K> setOf(K key1, K key2, K key3, K key4) static <K> Set.Immutable<K> setOf(K key1, K key2, K key3, K key4, K key5) static <K> Set.Immutable<K> setOf(K key1, K key2, K key3, K key4, K key5, K key6) Methods inherited from class AbstractImmutableSet
asTransient, containsAll, containsAllEquivalentMethods inherited from class AbstractSet
hashCodeMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
contains, containsAll, findFirst, get, hashCode, keyIterator, sizeMethods inherited from interface Set
spliterator, toArray, toArrayMethods inherited from interface Set.Immutable
__insert, __remove, asTransient, intersect, subtract, unionMethods inherited from interface SetEq
containsAllEquivalent, containsEquivalent, getEquivalentMethods inherited from interface SetEq.Immutable
__insertEquivalent, __removeEquivalent
-
Field Details
-
EMPTY_SET
-
-
Constructor Details
-
AbstractSpecialisedImmutableSet
public AbstractSpecialisedImmutableSet()
-
-
Method Details
-
of
-
setOf
-
setOf
-
setOf
-
setOf
-
setOf
-
setOf
-
setOf
-
setOf
-
add
- Specified by:
addin interfaceCollection<K>- Specified by:
addin interfaceSet<K>- Overrides:
addin classAbstractImmutableSet<K>
-
remove
- Specified by:
removein interfaceCollection<K>- Specified by:
removein interfaceSet<K>- Overrides:
removein classAbstractImmutableSet<K>
-
addAll
- Specified by:
addAllin interfaceCollection<K>- Specified by:
addAllin interfaceSet<K>- Overrides:
addAllin classAbstractImmutableSet<K>
-
removeAll
- Specified by:
removeAllin interfaceCollection<K>- Specified by:
removeAllin interfaceSet<K>- Overrides:
removeAllin classAbstractImmutableSet<K>
-
retainAll
- Specified by:
retainAllin interfaceCollection<K>- Specified by:
retainAllin interfaceSet<K>- Overrides:
retainAllin classAbstractImmutableSet<K>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<K>- Specified by:
clearin interfaceSet<K>- Overrides:
clearin classAbstractImmutableSet<K>
-
isEmpty
-
iterator
-
equals
-
equivalent
- Specified by:
equivalentin interfaceSetEq<K>
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
isTransientSupported
public boolean isTransientSupported()- Specified by:
isTransientSupportedin interfaceSet.Immutable<K>- Overrides:
isTransientSupportedin classAbstractImmutableSet<K>
-
__insertAll
- Specified by:
__insertAllin interfaceSet.Immutable<K>
-
__insertAllEquivalent
- Specified by:
__insertAllEquivalentin interfaceSetEq.Immutable<K>
-
__retainAll
- Specified by:
__retainAllin interfaceSet.Immutable<K>
-
__retainAllEquivalent
public Set.Immutable<K> __retainAllEquivalent(Set.Transient<? extends K> set, EqualityComparator<Object> cmp) - Specified by:
__retainAllEquivalentin interfaceSetEq.Immutable<K>
-
__removeAll
- Specified by:
__removeAllin interfaceSet.Immutable<K>
-
__removeAllEquivalent
- Specified by:
__removeAllEquivalentin interfaceSetEq.Immutable<K>
-