|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UnitarySet<V>
This interface represents the rather dubious concept of a set that may
contain at most one item. This set is primarily intended for use by
the method values(key) on regular (scalar) maps.
| Method Summary | |
|---|---|
UnitarySet<V> |
copy()
Returns a copy of the set. |
V |
get()
Returns the set's only value, if any |
V |
put(V value)
Insert the parameter into the set, removing and returning the currently value that exists in the set, if any |
UnitarySet<V> |
unique()
Returns this |
| Methods inherited from interface org.jjoost.collections.AnySet |
|---|
add, clear, clearAndReturn, putAll, putIfAbsent, remove, remove, removeAndReturn, removeAndReturn, removeAndReturnFirst, removeAndReturnFirst, shrink |
| Methods inherited from interface org.jjoost.collections.AnyReadSet |
|---|
all, contains, count, equality, first, isEmpty, list, permitsDuplicates, totalCount, uniqueCount |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface org.jjoost.util.Function |
|---|
apply |
| Method Detail |
|---|
V put(V value)
put in interface AnySet<V>value - value to insert
V get()
UnitarySet<V> copy()
UnitarySet
copy in interface AnySet<V>UnitarySet<V> unique()
this
unique in interface AnyReadSet<V>unique in interface AnySet<V>this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||