Class GeneratorOption<T>


  • public class GeneratorOption<T>
    extends java.lang.Object
    An object-valued option with default value for use in generator fragments.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeneratorOption()
      Create an option with no default value.
      GeneratorOption​(T defaultValue)
      Create an option with a default value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      boolean isSet()  
      void set​(T value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneratorOption

        public GeneratorOption()
        Create an option with no default value.
      • GeneratorOption

        public GeneratorOption​(T defaultValue)
        Create an option with a default value.
    • Method Detail

      • get

        public T get()
      • set

        public void set​(T value)
      • isSet

        public boolean isSet()