Class Set1<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>
io.usethesource.capsule.util.collection.Set1<K>
- All Implemented Interfaces:
Set<K>
,Set.Immutable<K>
,SetEq<K>
,SetEq.Immutable<K>
,Serializable
,Cloneable
,Iterable<K>
,Collection<K>
,Set<K>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.usethesource.capsule.Set
Set.Immutable<K>, Set.Transient<K>
Nested classes/interfaces inherited from interface io.usethesource.capsule.SetEq
SetEq.Immutable<K>, SetEq.Transient<K>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__insertEquivalent
(K key, EqualityComparator<Object> cmp) __removeEquivalent
(K key, EqualityComparator<Object> cmp) boolean
boolean
containsEquivalent
(Object key, EqualityComparator<Object> cmp) getEquivalent
(Object key, EqualityComparator<Object> cmp) int
hashCode()
int
size()
toString()
Methods inherited from class io.usethesource.capsule.util.collection.AbstractSpecialisedImmutableSet
__insertAll, __insertAllEquivalent, __removeAll, __removeAllEquivalent, __retainAll, __retainAllEquivalent, add, addAll, clear, clone, equals, equivalent, isEmpty, isTransientSupported, iterator, remove, removeAll, retainAll, setOf, setOf, setOf, setOf, setOf, setOf, setOf, setOf
Methods inherited from class io.usethesource.capsule.util.collection.AbstractImmutableSet
containsAll, containsAllEquivalent
Methods inherited from class java.util.AbstractCollection
toArray, toArray
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface io.usethesource.capsule.Set
containsAll, findFirst
Methods inherited from interface java.util.Set
spliterator, toArray, toArray
Methods inherited from interface io.usethesource.capsule.Set.Immutable
intersect, subtract, union
Methods inherited from interface io.usethesource.capsule.SetEq
containsAllEquivalent
-
Field Details
-
key1
-
-
Constructor Details
-
Set1
Set1(K key1)
-
-
Method Details
-
contains
-
containsEquivalent
-
get
-
getEquivalent
-
size
public int size() -
keyIterator
-
__insert
-
__insertEquivalent
-
__remove
-
__removeEquivalent
-
asTransient
- Specified by:
asTransient
in interfaceSet.Immutable<K>
- Overrides:
asTransient
in classAbstractImmutableSet<K>
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classAbstractCollection<K>
-