Class PropertySet
java.lang.Object
org.episteme.core.io.properties.PropertySet
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tget(PropertyKey<T> key) Retrieves a property value.<T> Optional<T> getOptional(PropertyKey<T> key) booleanhas(PropertyKey<?> key) Checks if a property exists.<T> voidset(PropertyKey<T> key, T value) Sets a property value.
-
Constructor Details
-
PropertySet
public PropertySet()
-
-
Method Details
-
set
Sets a property value.- Type Parameters:
T- The type of the value.- Parameters:
key- The property key.value- The value to set.
-
get
Retrieves a property value.- Type Parameters:
T- The type of the value.- Parameters:
key- The property key.- Returns:
- The value, or null if not present.
-
getOptional
-
has
Checks if a property exists.
-