Interface Context

All Known Subinterfaces:
EvaluationContext
All Known Implementing Classes:
ContextBase, RuleBuilder

public interface Context
An object capable of storing and retrieving values.
Author:
Lincoln Baxter, III
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the contents of this context and reset to a "like-new" state.
    boolean
    Return true if this context contains an entry with the given key.
    get(Object key)
    Get the value in the context map defined by the given key.
    void
    put(Object key, Object value)
    Store a key value pair into the context.
  • Method Details

    • clear

      void clear()
      Clear the contents of this context and reset to a "like-new" state.
    • get

      Object get(Object key)
      Get the value in the context map defined by the given key. Return null if no such key exists, or if they key maps to a null value.
    • put

      void put(Object key, Object value)
      Store a key value pair into the context.
    • containsKey

      boolean containsKey(Object key)
      Return true if this context contains an entry with the given key.