Class AbstractEnvironment

java.lang.Object
org.evrete.util.AbstractEnvironment
All Implemented Interfaces:
Environment

public class AbstractEnvironment extends Object implements Environment
  • Constructor Details

  • Method Details

    • set

      public Object set(String property, Object value)
      Description copied from interface: Environment
      Sets a property in the environment with the specified name and value.
      Specified by:
      set in interface Environment
      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 null if it did not have one.
    • get

      public final <T> T get(String property)
      Description copied from interface: Environment
      Retrieves the value of a property by its name.
      Specified by:
      get in interface Environment
      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 null if it does not exist.
    • getPropertyNames

      public final Collection<String> getPropertyNames()
      Description copied from interface: Environment
      Retrieves a collection of all property names in the environment.
      Specified by:
      getPropertyNames in interface Environment
      Returns:
      A collection of strings representing all property names in the environment.