Class PropertySet

java.lang.Object
org.episteme.core.io.properties.PropertySet

public class PropertySet extends Object
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • PropertySet

      public PropertySet()
  • Method Details

    • set

      public <T> void set(PropertyKey<T> key, T value)
      Sets a property value.
      Type Parameters:
      T - The type of the value.
      Parameters:
      key - The property key.
      value - The value to set.
    • get

      public <T> T get(PropertyKey<T> key)
      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

      public <T> Optional<T> getOptional(PropertyKey<T> key)
    • has

      public boolean has(PropertyKey<?> key)
      Checks if a property exists.