|
||||||||||
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.PropertiesPropertyCollection
@NotThreadSafe public final class PropertiesPropertyCollection
Implementation of PropertyCollection
based on properties.
Constructor Summary | |
---|---|
PropertiesPropertyCollection(Collection<Properties> properties) Constructor to add properties via a collection. |
|
PropertiesPropertyCollection(Properties... properties) Constructor to add properties. |
Method Summary | |
---|---|
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 PropertiesPropertyCollection(Collection<Properties> properties)
properties
- the properties to iterate over.
public PropertiesPropertyCollection(Properties... properties)
properties
- the properties to iterate over.
Method Detail |
---|
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.
iterator
in interface
PropertyCollection
iterator
in interface
Iterable<Property>
Iterable.iterator()
public void close()
PropertyCollection
close
in interface
PropertyCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |