|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- @Immutable public interface JImmutableSet<T>
Interface for immutable sets.
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. |
JImmutableSet<T> |
delete(T value)
Removes the value from the Set. |
JImmutableSet<T> |
deleteAll()
|
JImmutableSet<T> |
deleteAll(Collection<? extends T> other)
Removes all values of other from the Set. |
JImmutableSet<T> |
deleteAll(Cursor<? extends T> other)
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> other)
Removes all values of other from the Set. |
Set<T> |
getSet()
|
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()
|
int |
size()
Determines the number of values in the Set. |
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 interface org.javimmutable.collections.Cursorable |
---|
cursor |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
@Nonnull JImmutableSet<T> insert(@Nonnull T value)
insert
in interface Insertable<T>
value
-
boolean contains(@Nullable T value)
value
-
boolean containsAll(@Nonnull Cursorable<? extends T> values)
values
-
boolean containsAll(@Nonnull Collection<? extends T> values)
values
-
boolean containsAll(@Nonnull Cursor<? extends T> values)
values
-
boolean containsAll(@Nonnull Iterator<? extends T> values)
values
-
boolean containsAny(@Nonnull Cursorable<? extends T> values)
values
-
boolean containsAny(@Nonnull Collection<? extends T> values)
values
-
boolean containsAny(@Nonnull Cursor<? extends T> values)
values
-
boolean containsAny(@Nonnull Iterator<? extends T> values)
values
-
@Nonnull JImmutableSet<T> delete(T value)
value
-
@Nonnull JImmutableSet<T> deleteAll(@Nonnull Cursorable<? extends T> other)
other
-
@Nonnull JImmutableSet<T> deleteAll(@Nonnull Collection<? extends T> other)
other
-
@Nonnull JImmutableSet<T> deleteAll(@Nonnull Cursor<? extends T> other)
other
-
@Nonnull JImmutableSet<T> deleteAll(@Nonnull Iterator<? extends T> other)
other
-
@Nonnull JImmutableSet<T> union(@Nonnull Cursorable<? extends T> other)
other
- source of values to add
@Nonnull JImmutableSet<T> union(@Nonnull Collection<? extends T> other)
other
- source of values to add
@Nonnull JImmutableSet<T> union(@Nonnull Cursor<? extends T> values)
values
- source of values to add
@Nonnull JImmutableSet<T> union(@Nonnull Iterator<? extends T> values)
values
- source of values to add
@Nonnull JImmutableSet<T> intersection(@Nonnull Cursorable<? extends T> other)
other
-
@Nonnull JImmutableSet<T> intersection(@Nonnull Collection<? extends T> other)
other
-
@Nonnull JImmutableSet<T> intersection(@Nonnull Cursor<? extends T> values)
values
-
@Nonnull JImmutableSet<T> intersection(@Nonnull Iterator<? extends T> values)
values
-
@Nonnull JImmutableSet<T> intersection(@Nonnull JImmutableSet<T> other)
other
-
@Nonnull JImmutableSet<T> intersection(@Nonnull Set<? extends T> other)
other
-
int size()
boolean isEmpty()
@Nonnull JImmutableSet<T> deleteAll()
@Nonnull Set<T> getSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |