Package eu.mihosoft.vrl.v3d
Class PropertyStorage
java.lang.Object
eu.mihosoft.vrl.v3d.PropertyStorage
A simple property storage.
- Author:
- Michael Hoffer <info@michaelhoffer.de>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIndicates whether this storage contains the requested property.voidDeletes the requested property if present.<T> Optional<T>Returns a property.voidSets a property.
- 
Constructor Details- 
PropertyStoragepublic PropertyStorage()Constructor. Creates a new property storage.
 
- 
- 
Method Details- 
setSets a property. Existing properties are overwritten.- Parameters:
- key- key
- property- property
 
- 
getValueReturns a property.- Type Parameters:
- T- property type
- Parameters:
- key- key
- Returns:
- the property; an empty Optionalwill be returned if the property does not exist or the type does not match
 
- 
deleteDeletes the requested property if present. Does nothing otherwise.- Parameters:
- key- key
 
- 
containsIndicates whether this storage contains the requested property.- Parameters:
- key- key
- Returns:
- trueif this storage contains the requested property;- false
 
 
-