Class Feedback

    • Constructor Detail

      • Feedback

        public Feedback()
    • Method Detail

      • info

        public static Feedback info​(String description)
        Creates an instance with a single info message.
        Parameters:
        description - message description.
        Returns:
        the feedback reference.
        Since:
        3.1.0
      • info

        public static Feedback info​(String description,
                                    String detail)
        Creates an instance with a single info message.
        Parameters:
        description - message description.
        detail - message detail.
        Returns:
        the feedback reference.
        Since:
        3.5.0
      • success

        public static Feedback success​(String description)
        Creates an instance with a single success message.
        Parameters:
        description - message description.
        Returns:
        the feedback reference.
        Since:
        3.1.0
      • success

        public static Feedback success​(String description,
                                       String detail)
        Creates an instance with a single success message.
        Parameters:
        description - message description.
        detail - message detail.
        Returns:
        the feedback reference.
        Since:
        3.5.0
      • warning

        public static Feedback warning​(String description)
        Creates an instance with a single warning message.
        Parameters:
        description - message description.
        Returns:
        the feedback reference.
        Since:
        3.1.0
      • warning

        public static Feedback warning​(String description,
                                       String detail)
        Creates an instance with a single warning message.
        Parameters:
        description - message description.
        detail - message detail.
        Returns:
        the feedback reference.
        Since:
        3.5.0
      • error

        public static Feedback error​(String description)
        Creates an instance with a single error message.
        Parameters:
        description - message description.
        Returns:
        the feedback reference.
        Since:
        3.1.0
      • error

        public static Feedback error​(String description,
                                     String detail)
        Creates an instance with a single error message.
        Parameters:
        description - message description.
        detail - message detail.
        Returns:
        the feedback reference.
        Since:
        3.5.0
      • hasWarnings

        public boolean hasWarnings()
      • hasErrors

        public boolean hasErrors()
      • isEmpty

        public boolean isEmpty()
        Determines whether this instance has messages.
        Returns:
        true if this instance has messages; false otherwise.
        Since:
        3.5.0