Package jodd.props

Class PropsEntries

java.lang.Object
jodd.props.PropsEntries

public final class PropsEntries extends Object
Props iterator builder. Should be used with: Props.entries().
  • Field Details

  • Constructor Details

    • PropsEntries

      public PropsEntries(Props props)
  • Method Details

    • profile

      public PropsEntries profile(String profile)
      Enables profile to iterate.
    • profile

      public PropsEntries profile(String... profiles)
      Enables profiles to iterate.
    • activeProfiles

      public PropsEntries activeProfiles()
      Enables active profiles to iterate over.
    • addProfiles

      private void addProfiles(String profile)
    • section

      public PropsEntries section(String section)
      Enables section to iterate.
    • section

      public PropsEntries section(String... section)
      Enables sections to iterate.
    • addSection

      private void addSection(String section)
    • 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 Iterator<PropsEntry> iterator()
      Returns populated iterator.
    • forEach

      public void forEach(Consumer<PropsEntry> propsDataConsumer)
      Consumer all properties.