Class ChainedProperties


  • public class ChainedProperties
    extends Object
    • Field Detail

      • fontSizes

        public static final int[] fontSizes
    • Constructor Detail

      • ChainedProperties

        public ChainedProperties()
        Creates a new instance of ChainedProperties
    • Method Detail

      • getOrDefault

        @Nonnull
        public String getOrDefault​(String key,
                                   String defaultValue)
        Get property by its name or return default value when property is not present or is null
        Parameters:
        key - property name
        defaultValue - default property value
        Returns:
        property or default value if it's null
      • hasProperty

        public boolean hasProperty​(String key)
      • removeChain

        public void removeChain​(String key)