Class ChainedProperties


  • public class ChainedProperties
    extends Object
    • Field Detail

      • fontSizes

        public static final int[] fontSizes
      • chain

        public ArrayList<Object[]> chain
        Will be replaced with types alternative
    • Constructor Detail

      • ChainedProperties

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

      • findProperty

        public Optional<String> findProperty​(String key)
        Try find property by its name
        Parameters:
        key - property name
        Returns:
        Optional containing the value or Optional.empty() if there is no value or it equals null
      • getOrDefault

        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)