Class BuildReply


  • public class BuildReply
    extends java.lang.Object
    Return value with potential error or message.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      BuildReply​(BuildRC rc, java.lang.String message)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanisOK()
      Checks if OK.
      java.lang.StringtoString()
      Outputs to string.
      • Methods inherited from class java.lang.Object

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

      • OK

        public static final BuildReply OK
        The OK result.
      • CANCEL

        public static final BuildReply CANCEL
        The Canceled result.
      • rc

        public final BuildRC rc
        The return code.
      • message

        public final java.lang.String message
        The message, never null.
    • Constructor Detail

      • BuildReply

        public BuildReply​(BuildRC rc,
                          java.lang.String message)
        Constructor.
        Throws:
        java.lang.NullPointerException - If message is null.
    • Method Detail

      • isOK

        public boolean isOK()
        Checks if OK.
        Returns:
        true if return code is OK, false otherwise.
      • toString

        public java.lang.String toString()
        Outputs to string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string.