public class MessageList extends ArrayList<Message>
modCount
Constructor and Description |
---|
MessageList() |
MessageList(Collection<Message> c) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(Collection<Message> c,
boolean discardDuplicates) |
boolean |
containsMessagesOfType(int type) |
Date |
getCreationDate() |
List<Message> |
getMessagesForElement(Object element)
Retrieves from the list of messages those elements that produces the specified message code.
|
List<Message> |
getMessagesOfType(int type) |
String[] |
getMessagesOfTypeForElement(Object element,
int type)
Method that looks up the messages of the specified type for the specified element, and returns them in a String[].
|
List<Message> |
getMessagesWithCode(String messageCode)
Retrieves from the list of messages those elements that produces the specified message code.
|
boolean |
hasErrors() |
void |
keepOnlyMessagesOfType(int type) |
void |
removeMessagesOfType(int type) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public MessageList()
public MessageList(Collection<Message> c)
public Date getCreationDate()
public boolean addAll(Collection<Message> c, boolean discardDuplicates)
public List<Message> getMessagesWithCode(String messageCode)
messageCode
- The message code.public List<Message> getMessagesForElement(Object element)
element
- The process element.public boolean hasErrors()
public boolean containsMessagesOfType(int type)
public void removeMessagesOfType(int type)
public void keepOnlyMessagesOfType(int type)
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.