| java.lang.Object org.jfree.report.util.PropertiesIterator
PropertiesIterator | public class PropertiesIterator implements Iterator(Code) | | The properties iterator iterates over a set of enumerated properties. The properties
are named by an optional prefix plus a number, which is counted up on each iteration:
- prefix_0
- prefix_1
- prefix_2
- ...
The iterator iterates over all subsequent numbered proprties until the number-sequence
is finished.
author: Thomas Morgner |
Method Summary | |
public boolean | hasNext() Returns true if there is a property in the underlying collection with a name that
matches the name returned by the getNextKey() method. | public Object | next() Returns the property with a name the same as the name generated by the getNextKey()
method, or null if there is no such property (that is, then end of the sequence has
been reached). | public void | remove() Always throws UnsupportedOperationException as remove is not implemented for this
iterator. |
PropertiesIterator | public PropertiesIterator(Properties properties)(Code) | | Creates a new properties iterator without an prefix.
Parameters: properties - the underlying properties collection. |
PropertiesIterator | public PropertiesIterator(Properties properties, String prefix)(Code) | | Creates a new properties iterator with the given prefix.
Parameters: properties - the underlying properties collection. Parameters: prefix - a prefix for generating property names (null permitted). |
hasNext | public boolean hasNext()(Code) | | Returns true if there is a property in the underlying collection with a name that
matches the name returned by the getNextKey() method.
true if there is another property with a name in the correct form. |
next | public Object next()(Code) | | Returns the property with a name the same as the name generated by the getNextKey()
method, or null if there is no such property (that is, then end of the sequence has
been reached).
the property or null. |
remove | public void remove()(Code) | | Always throws UnsupportedOperationException as remove is not implemented for this
iterator.
throws: UnsupportedOperationException - as remove is not supported. |
|
|