Class BindOption

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

public class BindOption extends Option<Bind>
  • Constructor Details

  • Method Details

    • getValue

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

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

      public Bind reset()
      Specified by:
      reset in class Option<Bind>
    • getBind

      public int getBind()
    • isButton

      public boolean isButton()
    • setBind

      public void setBind(Bind bind)
    • setBind

      public void setBind(int bind, boolean isButton)
    • toJson

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

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