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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addItem(ErrorItem item)
Add anErrorItem
to thisErrors
.void
clear()
Clear out all theErrorItem
s in thisErrors
.boolean
equals(Object o)
Compares the specified object with thisErrors
for equality.List<ErrorItem>
getItems()
Return an unmodifiable list ofErrorItem
s in thisErrors
.int
hashCode()
Returns the hash code value for thisErrors
.boolean
isEmpty()
Return true if there's no errors.boolean
removeItem(ErrorItem item)
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
Return true if there's no errors.- Returns:
- true if there's no errors
-
addItem
boolean addItem(ErrorItem item)
Add anErrorItem
to thisErrors
.- Parameters:
item
- anErrorItem
- Returns:
- true if added
-
removeItem
boolean removeItem(ErrorItem item)
- Parameters:
item
- anErrorItem
- Returns:
- true if removed
-
getItems
List<ErrorItem> getItems()
Return an unmodifiable list ofErrorItem
s in thisErrors
.- Returns:
- an unmodifiable list of
ErrorItem
s in thisErrors
-
clear
void clear()
Clear out all theErrorItem
s in thisErrors
.
-
equals
boolean equals(Object o)
Compares the specified object with thisErrors
for equality.
-
-