Class Decision.Multi

  • All Implemented Interfaces:
    Writeable, ToXContent
    Enclosing class:
    Decision

    public static class Decision.Multi
    extends Decision
    Simple class representing a list of decisions
    • Constructor Detail

      • Multi

        public Multi()
    • Method Detail

      • label

        @Nullable
        public java.lang.String label()
        Description copied from class: Decision
        Get the description label for this decision.
        Specified by:
        label in class Decision
      • getExplanation

        @Nullable
        public java.lang.String getExplanation()
        Description copied from class: Decision
        Get the explanation for this decision.
        Specified by:
        getExplanation in class Decision
      • getDecisions

        public java.util.List<Decision> getDecisions()
        Description copied from class: Decision
        Return the list of all decisions that make up this decision
        Specified by:
        getDecisions in class Decision
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • writeTo

        public void writeTo​(StreamOutput out)
                     throws java.io.IOException
        Description copied from interface: Writeable
        Write this into the StreamOutput.
        Throws:
        java.io.IOException