Class Set5<K>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- io.usethesource.capsule.util.collection.AbstractImmutableSet<K>
-
- io.usethesource.capsule.util.collection.AbstractSpecialisedImmutableSet<K>
-
- io.usethesource.capsule.util.collection.Set5<K>
-
- All Implemented Interfaces:
Set<K>
,Set.Immutable<K>
,SetEq<K>
,SetEq.Immutable<K>
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<K>
,java.util.Collection<K>
,java.util.Set<K>
class Set5<K> extends AbstractSpecialisedImmutableSet<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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set.Immutable<K>
__insert(K key)
Set.Immutable<K>
__insertEquivalent(K key, EqualityComparator<java.lang.Object> cmp)
Set.Immutable<K>
__remove(K key)
Set.Immutable<K>
__removeEquivalent(K key, EqualityComparator<java.lang.Object> cmp)
Set.Transient<K>
asTransient()
boolean
contains(java.lang.Object key)
boolean
containsEquivalent(java.lang.Object key, EqualityComparator<java.lang.Object> cmp)
K
get(java.lang.Object key)
K
getEquivalent(java.lang.Object key, EqualityComparator<java.lang.Object> cmp)
int
hashCode()
SupplierIterator<K,K>
keyIterator()
int
size()
java.lang.String
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.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.usethesource.capsule.Set
containsAll, findFirst
-
Methods inherited from interface io.usethesource.capsule.Set.Immutable
intersect, subtract, union
-
Methods inherited from interface io.usethesource.capsule.SetEq
containsAllEquivalent
-
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object key)
-
containsEquivalent
public boolean containsEquivalent(java.lang.Object key, EqualityComparator<java.lang.Object> cmp)
-
get
public K get(java.lang.Object key)
-
getEquivalent
public K getEquivalent(java.lang.Object key, EqualityComparator<java.lang.Object> cmp)
-
size
public int size()
-
keyIterator
public SupplierIterator<K,K> keyIterator()
-
__insert
public Set.Immutable<K> __insert(K key)
-
__insertEquivalent
public Set.Immutable<K> __insertEquivalent(K key, EqualityComparator<java.lang.Object> cmp)
-
__remove
public Set.Immutable<K> __remove(K key)
-
__removeEquivalent
public Set.Immutable<K> __removeEquivalent(K key, EqualityComparator<java.lang.Object> cmp)
-
asTransient
public Set.Transient<K> asTransient()
- Specified by:
asTransient
in interfaceSet.Immutable<K>
- Overrides:
asTransient
in classAbstractImmutableSet<K>
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.util.AbstractCollection<K>
-
-