|
||||||||||
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.NativePropertyCollection
@NotThreadSafe public final class NativePropertyCollection
Implementation of PropertyCollection
based on a Map
.
Constructor Summary | |
---|---|
NativePropertyCollection(Collection<Map<String,Property>> properties) Constructor to add properties via a collection. |
|
NativePropertyCollection(Map<String,Property>... properties) Constructor to add properties. |
|
NativePropertyCollection(Map<String,Property> 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 NativePropertyCollection(Collection<Map<String,Property>> properties)
The contents of the properties
are added. The client may use the properties
continuously for other purposes since no reference is held to any of the properties
after the call.
properties
- the properties to iterate over.
public NativePropertyCollection(Map<String,Property> properties)
The contents of the properties
is added. The client may use the properties
continuously for other purposes since no reference is held to the properties
after the call.
properties
- the properties to iterate over.
public NativePropertyCollection(Map<String,Property>... properties)
The contents of the properties
are added. The client may use the properties
continuously for other purposes since no reference is held to any of the properties
after the call.
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 |