|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javimmutable.collections.common.AbstractJImmutableSet<T>
@Immutable public abstract class AbstractJImmutableSet<T>
Constructor Summary | |
---|---|
protected |
AbstractJImmutableSet(JImmutableMap<T,Boolean> map)
|
Method Summary | |
---|---|
boolean |
contains(T value)
Determines if the Set contains the specified value. |
boolean |
containsAll(Collection<? extends T> values)
Determines if the Set contains all values in the specified collection. |
boolean |
containsAll(Cursor<? extends T> values)
Determines if the Set contains all values in the specified collection. |
boolean |
containsAll(Cursorable<? extends T> values)
Determines if the Set contains all values in the specified collection. |
boolean |
containsAll(Iterator<? extends T> values)
Determines if the Set contains all values in the specified collection. |
boolean |
containsAny(Collection<? extends T> values)
Determines if the Set contains any values in the specified collection. |
boolean |
containsAny(Cursor<? extends T> values)
Determines if the Set contains any values in the specified collection. |
boolean |
containsAny(Cursorable<? extends T> values)
Determines if the Set contains any values in the specified collection. |
boolean |
containsAny(Iterator<? extends T> values)
Determines if the Set contains any values in the specified collection. |
protected abstract JImmutableSet<T> |
create(JImmutableMap<T,Boolean> map)
Implemented by derived classes to create a new instance of the appropriate class. |
Cursor<T> |
cursor()
|
JImmutableSet<T> |
delete(T value)
Removes the value from the Set. |
JImmutableSet<T> |
deleteAll(Collection<? extends T> other)
Removes all values of other from the Set. |
JImmutableSet<T> |
deleteAll(Cursor<? extends T> values)
Removes all values of other from the Set. |
JImmutableSet<T> |
deleteAll(Cursorable<? extends T> other)
Removes all values of other from the Set. |
JImmutableSet<T> |
deleteAll(Iterator<? extends T> values)
Removes all values of other from the Set. |
protected abstract JImmutableMap<T,Boolean> |
emptyMap()
Implemented by derived classes to create a new empty PersistentMap for use by retainAll() |
boolean |
equals(Object o)
|
Set<T> |
getSet()
|
int |
hashCode()
|
JImmutableSet<T> |
insert(T value)
Adds the single value to the Set. |
JImmutableSet<T> |
intersection(Collection<? extends T> other)
Removes all values from the Set that are not contained in the other collection. |
JImmutableSet<T> |
intersection(Cursor<? extends T> values)
Removes all values from the Set that are not contained in the other collection. |
JImmutableSet<T> |
intersection(Cursorable<? extends T> other)
Removes all values from the Set that are not contained in the other collection. |
JImmutableSet<T> |
intersection(Iterator<? extends T> values)
Removes all values from the Set that are not contained in the other collection. |
JImmutableSet<T> |
intersection(JImmutableSet<T> other)
Removes all values from the Set that are not contained in the other collection. |
JImmutableSet<T> |
intersection(Set<? extends T> other)
Removes all values from the Set that are not contained in the other collection. |
boolean |
isEmpty()
|
Iterator<T> |
iterator()
|
int |
size()
Determines the number of values in the Set. |
String |
toString()
|
JImmutableSet<T> |
union(Collection<? extends T> other)
Adds all values from other to the Set. |
JImmutableSet<T> |
union(Cursor<? extends T> values)
Adds all values from other to the Set. |
JImmutableSet<T> |
union(Cursorable<? extends T> other)
Adds all values from other to the Set. |
JImmutableSet<T> |
union(Iterator<? extends T> values)
Adds all values from other to the Set. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.javimmutable.collections.JImmutableSet |
---|
deleteAll |
Constructor Detail |
---|
protected AbstractJImmutableSet(JImmutableMap<T,Boolean> map)
Method Detail |
---|
@Nonnull public JImmutableSet<T> insert(@Nonnull T value)
JImmutableSet
insert
in interface Insertable<T>
insert
in interface JImmutableSet<T>
public boolean contains(@Nullable T value)
JImmutableSet
contains
in interface JImmutableSet<T>
public boolean containsAll(@Nonnull Cursorable<? extends T> values)
JImmutableSet
containsAll
in interface JImmutableSet<T>
public boolean containsAll(@Nonnull Collection<? extends T> values)
JImmutableSet
containsAll
in interface JImmutableSet<T>
public boolean containsAll(@Nonnull Cursor<? extends T> values)
JImmutableSet
containsAll
in interface JImmutableSet<T>
public boolean containsAll(@Nonnull Iterator<? extends T> values)
JImmutableSet
containsAll
in interface JImmutableSet<T>
public boolean containsAny(@Nonnull Cursorable<? extends T> values)
JImmutableSet
containsAny
in interface JImmutableSet<T>
public boolean containsAny(@Nonnull Collection<? extends T> values)
JImmutableSet
containsAny
in interface JImmutableSet<T>
public boolean containsAny(@Nonnull Cursor<? extends T> values)
JImmutableSet
containsAny
in interface JImmutableSet<T>
public boolean containsAny(@Nonnull Iterator<? extends T> values)
JImmutableSet
containsAny
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> delete(T value)
JImmutableSet
delete
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> deleteAll(@Nonnull Cursorable<? extends T> other)
JImmutableSet
deleteAll
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> deleteAll(@Nonnull Collection<? extends T> other)
JImmutableSet
deleteAll
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> deleteAll(@Nonnull Cursor<? extends T> values)
JImmutableSet
deleteAll
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> deleteAll(@Nonnull Iterator<? extends T> values)
JImmutableSet
deleteAll
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> union(@Nonnull Cursorable<? extends T> other)
JImmutableSet
union
in interface JImmutableSet<T>
other
- source of values to add
@Nonnull public JImmutableSet<T> union(@Nonnull Collection<? extends T> other)
JImmutableSet
union
in interface JImmutableSet<T>
other
- source of values to add
@Nonnull public JImmutableSet<T> union(@Nonnull Cursor<? extends T> values)
JImmutableSet
union
in interface JImmutableSet<T>
values
- source of values to add
@Nonnull public JImmutableSet<T> union(@Nonnull Iterator<? extends T> values)
JImmutableSet
union
in interface JImmutableSet<T>
values
- source of values to add
@Nonnull public JImmutableSet<T> intersection(@Nonnull Cursorable<? extends T> other)
JImmutableSet
intersection
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> intersection(@Nonnull Collection<? extends T> other)
JImmutableSet
intersection
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> intersection(@Nonnull Cursor<? extends T> values)
JImmutableSet
intersection
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> intersection(@Nonnull Iterator<? extends T> values)
JImmutableSet
intersection
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> intersection(@Nonnull JImmutableSet<T> other)
JImmutableSet
intersection
in interface JImmutableSet<T>
@Nonnull public JImmutableSet<T> intersection(@Nonnull Set<? extends T> other)
JImmutableSet
intersection
in interface JImmutableSet<T>
public int size()
JImmutableSet
size
in interface JImmutableSet<T>
public boolean isEmpty()
isEmpty
in interface JImmutableSet<T>
@Nonnull public Set<T> getSet()
getSet
in interface JImmutableSet<T>
@Nonnull public Cursor<T> cursor()
cursor
in interface Cursorable<T>
public Iterator<T> iterator()
iterator
in interface Iterable<T>
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
protected abstract JImmutableSet<T> create(JImmutableMap<T,Boolean> map)
map
-
protected abstract JImmutableMap<T,Boolean> emptyMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |