Package jodd.props
Class PropsEntries
- java.lang.Object
-
- jodd.props.PropsEntries
-
public final class PropsEntries extends java.lang.ObjectProps iterator builder. Should be used with:Props.entries().
-
-
Constructor Summary
Constructors Constructor Description PropsEntries(Props props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropsEntriesactiveProfiles()Enables active profiles to iterate over.voidforEach(java.util.function.Consumer<PropsEntry> propsDataConsumer)Consumer all properties.java.util.Iterator<PropsEntry>iterator()Returns populated iterator.PropsEntriesprofile(java.lang.String profile)Enables profile to iterate.PropsEntriesprofile(java.lang.String... profiles)Enables profiles to iterate.PropsEntriessection(java.lang.String section)Enables section to iterate.PropsEntriessection(java.lang.String... section)Enables sections to iterate.PropsEntriesskipDuplicatesByPosition()Skips all keys after first definition, even if value is set later.PropsEntriesskipDuplicatesByValue()Skips duplicate keys (defined in different profiles) which value is not used for setting current key value.
-
-
-
Constructor Detail
-
PropsEntries
public PropsEntries(Props props)
-
-
Method Detail
-
profile
public PropsEntries profile(java.lang.String profile)
Enables profile to iterate.
-
profile
public PropsEntries profile(java.lang.String... profiles)
Enables profiles to iterate.
-
activeProfiles
public PropsEntries activeProfiles()
Enables active profiles to iterate over.
-
section
public PropsEntries section(java.lang.String section)
Enables section to iterate.
-
section
public PropsEntries section(java.lang.String... section)
Enables sections to iterate.
-
skipDuplicatesByValue
public PropsEntries skipDuplicatesByValue()
Skips duplicate keys (defined in different profiles) which value is not used for setting current key value.
-
skipDuplicatesByPosition
public PropsEntries skipDuplicatesByPosition()
Skips all keys after first definition, even if value is set later.
-
iterator
public java.util.Iterator<PropsEntry> iterator()
Returns populated iterator.
-
forEach
public void forEach(java.util.function.Consumer<PropsEntry> propsDataConsumer)
Consumer all properties.
-
-