public class ChainedProperties extends Object
Modifier and Type | Field and Description |
---|---|
ArrayList |
chain
Deprecated.
|
static int[] |
fontSizes |
Constructor and Description |
---|
ChainedProperties()
Creates a new instance of ChainedProperties
|
Modifier and Type | Method and Description |
---|---|
void |
addToChain(String key,
HashMap prop)
Deprecated.
|
void |
addToChain(String key,
Map<String,String> prop) |
Optional<String> |
findProperty(String key)
Try find property by its name
|
String |
getOrDefault(String key,
String defaultValue)
Get property by its name or return default value when property is not present or is
null |
String |
getProperty(String key) |
boolean |
hasProperty(String key) |
void |
removeChain(String key) |
public static final int[] fontSizes
@Deprecated public ArrayList chain
public ChainedProperties()
@Nonnull public Optional<String> findProperty(String key)
key
- property nameOptional
containing the value or Optional.empty()
if there is no value or
it equals null
@Nonnull public String getOrDefault(String key, String defaultValue)
null
key
- property namedefaultValue
- default property valuepublic boolean hasProperty(String key)
@Deprecated public void addToChain(String key, HashMap prop)
addToChain(String, HashMap)
public void removeChain(String key)
Copyright © 2020. All rights reserved.