java.lang.Object
org.evrete.util.AbstractEnvironment
- All Implemented Interfaces:
Environment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> TRetrieves the value of a property by its name.final Collection<String>Retrieves a collection of all property names in the environment.Sets a property in the environment with the specified name and value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evrete.api.Environment
get
-
Constructor Details
-
AbstractEnvironment
-
AbstractEnvironment
-
-
Method Details
-
set
Description copied from interface:EnvironmentSets a property in the environment with the specified name and value.- Specified by:
setin interfaceEnvironment- Parameters:
property- The name of the property to be set.value- The value of the property to be set.- Returns:
- The previous value of the property, or
nullif it did not have one.
-
get
Description copied from interface:EnvironmentRetrieves the value of a property by its name.- Specified by:
getin interfaceEnvironment- Type Parameters:
T- The expected type of the property value.- Parameters:
property- The name of the property to retrieve.- Returns:
- The value of the property as type T, or
nullif it does not exist.
-
getPropertyNames
Description copied from interface:EnvironmentRetrieves a collection of all property names in the environment.- Specified by:
getPropertyNamesin interfaceEnvironment- Returns:
- A collection of strings representing all property names in the environment.
-