|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.util.PropertiesIterator
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:
Constructor Summary | |
PropertiesIterator(java.util.Properties properties)
Creates a new properties iterator without an prefix. |
|
PropertiesIterator(java.util.Properties properties,
java.lang.String prefix)
Creates a new properties iterator with the given prefix. |
Method Summary | |
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. |
java.lang.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). |
void |
remove()
Always throws UnsupportedOperationException as remove is not implemented for this iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertiesIterator(java.util.Properties properties)
properties
- the underlying properties collection.public PropertiesIterator(java.util.Properties properties, java.lang.String prefix)
properties
- the underlying properties collection.prefix
- a prefix for generating property names (null permitted).Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- as remove is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |