Klasse ExplainedBoolean

java.lang.Object
org.opentcs.util.ExplainedBoolean

public class ExplainedBoolean extends Object
A boolean with an explanation/reason for its value.
  • Konstruktordetails

    • ExplainedBoolean

      public ExplainedBoolean(boolean value, @Nonnull String reason)
      Creates a new instance.
      Parameter:
      value - The actual value.
      reason - A reason/explanation for the value.
  • Methodendetails

    • getValue

      public boolean getValue()
      Returns the actual value.
      Gibt zurück:
      The actual value.
    • getReason

      @Nonnull public String getReason()
      A reason/explanation for the value.
      Gibt zurück:
      The reason