|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.support.MultiPropertyCollection
public final class MultiPropertyCollection
Provides access to a set of property iterators.
Constructor Summary | |
---|---|
MultiPropertyCollection() |
Method Summary | |
---|---|
void |
add(PropertyCollection collection) Adds the given collection to this set. |
void |
close() Releases all resources used by this collection. |
Iterator<Property> |
iterator() Returns an iterator over a set of properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiPropertyCollection()
Method Detail |
---|
public void add(PropertyCollection collection) throws NullPointerException
collection
- the collection to add.
NullPointerException
- if
collection
is
null
.
public void close()
Closes each collection in the set.
close
in interface
PropertyCollection
public Iterator<Property> iterator()
Please note that an implementation may require to call PropertyCollection.close()
after iterating over the values. The client calling PropertyCollection.iterator()
is responsible for closing the collection.
Returns an iterator on each collection in the set.
iterator
in interface
PropertyCollection
iterator
in interface
Iterable<Property>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |