Interface Errors

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    DefaultErrors

    public interface Errors
    extends Serializable
    Errors abstraction for an application subject (e.g, a field in a form of an application).
    • Method Detail

      • isEmpty

        boolean isEmpty()
        Return true if there's no errors.
        Returns:
        true if there's no errors
      • removeItem

        boolean removeItem​(ErrorItem item)
        Remove the given ErrorItem (item) from this Errors.
        Parameters:
        item - an ErrorItem
        Returns:
        true if removed
      • getItems

        List<ErrorItem> getItems()
        Return an unmodifiable list of ErrorItems in this Errors.
        Returns:
        an unmodifiable list of ErrorItems in this Errors
      • clear

        void clear()
        Clear out all the ErrorItems in this Errors.
      • equals

        boolean equals​(Object o)
        Compares the specified object with this Errors for equality.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared for equality with this Errors
        Returns:
        true if the specified object is equal to this Errors
      • hashCode

        int hashCode()
        Returns the hash code value for this Errors.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code value for this Errors