JavaCAD
|
Public Member Functions | |
PropertyStorage () | |
void | set (String key, Object property) |
void | delete (String key) |
boolean | contains (String key) |
Private Attributes | |
final Map< String, Object > | map = new HashMap<>() |
Static Private Attributes | |
static final Color[] | colors |
A simple property storage.
Definition at line 47 of file PropertyStorage.java.
eu.mihosoft.vrl.v3d.PropertyStorage.PropertyStorage | ( | ) |
Constructor. Creates a new property storage.
Definition at line 60 of file PropertyStorage.java.
boolean eu.mihosoft.vrl.v3d.PropertyStorage.contains | ( | String | key | ) |
Indicates whether this storage contains the requested property.
key | key |
Definition at line 109 of file PropertyStorage.java.
References eu.mihosoft.vrl.v3d.PropertyStorage.map.
void eu.mihosoft.vrl.v3d.PropertyStorage.delete | ( | String | key | ) |
Deletes the requested property if present. Does nothing otherwise.
key | key |
Definition at line 98 of file PropertyStorage.java.
References eu.mihosoft.vrl.v3d.PropertyStorage.map.
void eu.mihosoft.vrl.v3d.PropertyStorage.set | ( | String | key, |
Object | property | ||
) |
Sets a property. Existing properties are overwritten.
key | key |
property | property |
Definition at line 70 of file PropertyStorage.java.
References eu.mihosoft.vrl.v3d.PropertyStorage.map.
|
staticprivate |
The Constant colors.
Definition at line 53 of file PropertyStorage.java.
|
private |
The map.
Definition at line 50 of file PropertyStorage.java.
Referenced by eu.mihosoft.vrl.v3d.PropertyStorage.contains(), eu.mihosoft.vrl.v3d.PropertyStorage.delete(), and eu.mihosoft.vrl.v3d.PropertyStorage.set().