Class TextResult

  • All Implemented Interfaces:
    Result

    public class TextResult
    extends java.lang.Object
    implements Result
    Result as a text.
    Author:
    Franz-Josef Elmer
    • Constructor Summary

      Constructors 
      Constructor Description
      TextResult​(java.lang.String text)
      Creates an instance with specified text which is ok.
      TextResult​(java.lang.String text, boolean ok)
      Creates an instance with specified text and specified OK flag.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isOk()
      Returns true if the checking result is positive.
      java.lang.String toString()
      Returns the text specified in the constructor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TextResult

        public TextResult​(java.lang.String text)
        Creates an instance with specified text which is ok.
      • TextResult

        public TextResult​(java.lang.String text,
                          boolean ok)
        Creates an instance with specified text and specified OK flag.
    • Method Detail

      • isOk

        public boolean isOk()
        Description copied from interface: Result
        Returns true if the checking result is positive.
        Specified by:
        isOk in interface Result
      • toString

        public java.lang.String toString()
        Returns the text specified in the constructor.
        Overrides:
        toString in class java.lang.Object