Class ToggleOption

java.lang.Object
dev.boze.api.option.Option<Boolean>
dev.boze.api.option.ToggleOption
All Implemented Interfaces:
Serializable<Boolean>

public class ToggleOption extends Option<Boolean>
  • Constructor Details

  • Method Details

    • getValue

      public Boolean getValue()
      Specified by:
      getValue in class Option<Boolean>
    • setValue

      public Boolean setValue(Boolean newValue)
      Specified by:
      setValue in class Option<Boolean>
    • reset

      public Boolean reset()
      Specified by:
      reset in class Option<Boolean>
    • toJson

      public com.google.gson.JsonObject toJson()
      Returns:
      The object as a JsonObject
    • fromJson

      public Boolean fromJson(com.google.gson.JsonObject object)
      Parameters:
      object - The JsonObject to deserialize
      Returns:
      The deserialized object