Package jodd.props
Class PropsEntries.PropsIterator
- java.lang.Object
-
- jodd.props.PropsEntries.PropsIterator
-
- All Implemented Interfaces:
java.util.Iterator<PropsEntry>
- Enclosing class:
- PropsEntries
private class PropsEntries.PropsIterator extends java.lang.Object implements java.util.Iterator<PropsEntry>
Props iterator.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfirstTimeprivate java.util.Set<java.lang.String>keysprivate PropsEntrynextprivate java.util.List<java.lang.String>profilesprivate java.util.List<java.lang.String>sectionsprivate booleanskipDuplicatesByPositionprivate booleanskipDuplicatesByValue
-
Constructor Summary
Constructors Modifier Constructor Description privatePropsIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanaccept(PropsEntry entry)Accepts an entry and returnstrueif entry should appear in this iteration.booleanhasNext()PropsEntrynext()voidremove()private voidstart()Starts with the iterator.
-
-
-
Field Detail
-
next
private PropsEntry next
-
firstTime
private boolean firstTime
-
profiles
private java.util.List<java.lang.String> profiles
-
sections
private java.util.List<java.lang.String> sections
-
skipDuplicatesByValue
private boolean skipDuplicatesByValue
-
skipDuplicatesByPosition
private boolean skipDuplicatesByPosition
-
keys
private java.util.Set<java.lang.String> keys
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<PropsEntry>
-
start
private void start()
Starts with the iterator.
-
accept
private boolean accept(PropsEntry entry)
Accepts an entry and returnstrueif entry should appear in this iteration.
-
next
public PropsEntry next()
- Specified by:
nextin interfacejava.util.Iterator<PropsEntry>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<PropsEntry>
-
-