|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CollectionPropertyI<T>
A property that holds a value that is a Collection. The interface denotes
how to access the elements of that collection.
It is not defined if the collection itself can be null or if the elements can be null.
| Method Summary | |
|---|---|
Result<T> |
add(T value)
Adds a value to the collection. |
ResultList<T> |
addAll(java.util.Collection<? extends T> elements)
Adds a whole collection to this one. |
boolean |
contains(T value)
Returns if value is in this property collecion. |
boolean |
containsAll(java.util.Collection<?> c)
Returns if all c elements is in this property collecion. |
java.util.Iterator<T> |
iterator()
Returns an iterator that iterates over this property's entries. |
Result<T> |
remove(T value)
Removes a value from the collection. |
ResultList<T> |
removeAll()
Removes all elements in this property by iterating and removing. |
int |
size()
Returns the number of elements in this property. |
| Methods inherited from interface net.java.properties.PropertyI |
|---|
get, set |
| Method Detail |
|---|
Result<T> add(T value)
NullPointerException if the collection
is null.
value - The value to add.
null.Result<T> remove(T value)
NullPointerException if the collection
is null.
value - The value to remove.
null.ResultList<T> addAll(java.util.Collection<? extends T> elements)
This method iterates over the collection and adds with add(T)
elements - The collection which elements to add. Not null.
null.ResultList<T> removeAll()
NullPointerException if the collection
is null.
null.boolean contains(T value)
value is in this property collecion. Will throw a NullPointerException if the collection
is null.
value - The value to check for. May be null.
value is in this property collecion. Never null.boolean containsAll(java.util.Collection<?> c)
c elements is in this property collecion. Will throw a NullPointerException if the collection
is null.
c - The collection containing the elements to check. Not null.
c elements is in this property collecion. Never null.java.util.Iterator<T> iterator()
NullPointerException if the collection
is null.
null.int size()
NullPointerException if the collection
is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||