Module gomint.api

Class GeneratorContext


  • public class GeneratorContext
    extends Object
    Version:
    1.0
    Author:
    geNAZt
    • Constructor Detail

      • GeneratorContext

        public GeneratorContext()
    • Method Detail

      • get

        public <T> T get​(String key)
        Get stored data for this key
        Parameters:
        key - which should hold data
        Returns:
        data assigned to the key or null
      • contains

        public boolean contains​(String key)
        Check if there is data assigned to the given key
        Parameters:
        key - which should be checked
        Returns:
        true if there is data assigned, false if not
      • put

        public void put​(String key,
                        Object value)
        Put a new data to key assoc into the context
        Parameters:
        key - of the data
        value - of the data assoc