Class StixBoolean

java.lang.Object
security.whisper.javastix.common.StixBoolean

public class StixBoolean extends Object
Wrapper for boolean that is used in Stix to track if the boolean value was User provided. Custom class is used instead of a Boolean in order to provide a more robust api
  • Constructor Details

    • StixBoolean

      public StixBoolean(boolean stixBooleanValue)
    • StixBoolean

      public StixBoolean(boolean stixBooleanValue, boolean isDefinedValue)
    • StixBoolean

      public StixBoolean()
      Defaults to StixBoolean value to false. Sets isDefinedValue to false
    • StixBoolean

      public StixBoolean(String booleanString)
  • Method Details

    • getStixBooleanValue

      public boolean getStixBooleanValue()
    • isdefinedValue

      public boolean isdefinedValue()
      Indicates that the boolean value was explicitly defined, even if the value was false, and the original object's property defaults to false if no value is provided.
      Returns:
      boolean indicating if the value was defined.
    • toString

      public String toString()
      Overrides:
      toString in class Object