Package io.github.qishr.cascara.common.util
Class Properties
java.lang.Object
io.github.qishr.cascara.common.util.Properties
All Implemented Interfaces:
TableData
public class Properties
Constructor Summary
| Constructor | Description |
|---|---|
| Properties() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public boolean | containsKey(String k) | |
| public Map<String, Object> | getValuesMap() | |
| public List<Property> | asList() | |
| public Property | get(String k) | |
| public String | getString(String k) | |
| public String | getString(String k, String defaultValue) | |
| public int | getInt(String k, int defaultValue) | |
| public long | getLong(String k, int defaultValue) | |
| public double | getDouble(String k, double defaultValue) | |
| public boolean | getBoolean(String k, boolean defaultValue) | |
| public Properties | set(String k, String v) | |
| public Properties | set(String k, double v) | |
| public Properties | set(String k, int v) | |
| public Properties | set(String k, boolean v) | |
| public void | addAll(Properties properties) | |
| public void | add(Property property) | |
| public Object[] | getValues() | |
| public void | remove(String k) | |
| public void | remove(Property property) | |
| public void | clear() | |
| public boolean | isEmpty() | |
| public Properties | duplicate() |
Method Details
containsKey
public boolean containsKey(String k)
getValuesMap
public Map<String, Object> getValuesMap()
Specified By:
asList
public List<Property> asList()
get
Specified By:
getString
public String getString(String k)
getString
public String getString(String k, String defaultValue)
getInt
public int getInt(String k, int defaultValue)
getLong
public long getLong(String k, int defaultValue)
getDouble
public double getDouble(String k, double defaultValue)
getBoolean
public boolean getBoolean(String k, boolean defaultValue)
set
public Properties set(String k, String v)
set
public Properties set(String k, double v)
set
public Properties set(String k, int v)
set
public Properties set(String k, boolean v)
addAll
public void addAll(Properties properties)
add
public void add(Property property)
getValues
public Object[] getValues()
Specified By:
remove
public void remove(String k)
remove
public void remove(Property property)
clear
public void clear()
isEmpty
public boolean isEmpty()
duplicate
public Properties duplicate()