public class MessageErrorDigest extends java.util.AbstractCollection<MessageDigestErrorEntry> implements java.io.Serializable, java.util.List<MessageDigestErrorEntry>
Note that while this list implements the List
interface, the optional operations List.add(int, Object)
,
List.addAll(int, Collection)
and List.set(int, Object)
will throw an UnsupportedOperationException
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_MESSAGES
Default max messages = 100
|
Constructor and Description |
---|
MessageErrorDigest() |
MessageErrorDigest(java.util.Collection<MessageDigestErrorEntry> original)
Return a new MessageErrorDigest which contains this collection of
MessageDigestErrorEntry objects. |
MessageErrorDigest(int size,
java.util.Collection<MessageDigestErrorEntry> original)
Return a new MessageErrorDigest which contains this collection of
MessageDigestErrorEntry objects. |
MessageErrorDigest(int size,
MessageErrorDigest digest,
int fromIndex)
Returns a new MessageErrorDigest which contains a view of the portion of this list between the specified fromIndex,
inclusive, the end of the list exclusive.
|
MessageErrorDigest(int size,
MessageErrorDigest digest,
int fromIndex,
int toIndex)
Returns a new MessageErrorDigest which contains a view of the portion of this list between the specified fromIndex,
inclusive, and toIndex, exclusive.
|
MessageErrorDigest(MessageErrorDigest digest,
int fromIndex)
Returns a new MessageErrorDigest which contains a view of the portion of this list between the specified fromIndex,
inclusive, the end of the list exclusive.
|
MessageErrorDigest(MessageErrorDigest digest,
int fromIndex,
int toIndex)
Returns a new MessageErrorDigest which contains a view of the portion of this list between the specified fromIndex,
inclusive, and toIndex, exclusive.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
MessageDigestErrorEntry element) |
boolean |
add(MessageDigestErrorEntry ame) |
boolean |
addAll(int index,
java.util.Collection<? extends MessageDigestErrorEntry> c) |
MessageDigestErrorEntry |
get(int index) |
int |
getMaxMessages() |
int |
indexOf(java.lang.Object o) |
java.util.Iterator<MessageDigestErrorEntry> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<MessageDigestErrorEntry> |
listIterator() |
java.util.ListIterator<MessageDigestErrorEntry> |
listIterator(int index) |
MessageDigestErrorEntry |
remove(int index) |
MessageDigestErrorEntry |
set(int index,
MessageDigestErrorEntry element) |
void |
setMaxMessages(int maxMessages)
Set the maximum number of messages this digester will cache.
|
int |
size() |
java.util.List<MessageDigestErrorEntry> |
subList(int fromIndex,
int toIndex) |
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final int DEFAULT_MAX_MESSAGES
public MessageErrorDigest()
public MessageErrorDigest(java.util.Collection<MessageDigestErrorEntry> original)
MessageDigestErrorEntry
objects.
The max size of the list is set to be DEFAULT_MAX_MESSAGES
original
- the original collection of errors.public MessageErrorDigest(int size, java.util.Collection<MessageDigestErrorEntry> original)
MessageDigestErrorEntry
objects.size
- the size of the new list.original
- the original collection of errors.public MessageErrorDigest(MessageErrorDigest digest, int fromIndex)
The max size of the list is set to be DEFAULT_MAX_MESSAGES
digest
- the original digestfromIndex
- low endpoint (inclusive) of the subListMessageErrorDigest(int, MessageErrorDigest, int)
,
subList(int, int)
public MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex)
size
- the max size of the new list.digest
- the original digestfromIndex
- low endpoint (inclusive) of the subListsubList(int, int)
public MessageErrorDigest(MessageErrorDigest digest, int fromIndex, int toIndex)
digest
- the originalfromIndex
- low endpoint (inclusive) of the subListtoIndex
- high endpoint (exclusive) of the subListsubList(int, int)
,
MessageErrorDigest(int, MessageErrorDigest, int, int)
public MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex, int toIndex)
The max size of the list is set to be DEFAULT_MAX_MESSAGES
size
- the max size of the new listdigest
- the originalfromIndex
- low endpoint (inclusive) of the subListtoIndex
- high endpoint (exclusive) of the subListsubList(int, int)
public int getMaxMessages()
public void setMaxMessages(int maxMessages)
maxMessages
- the max number of messages.public boolean addAll(int index, java.util.Collection<? extends MessageDigestErrorEntry> c)
addAll
in interface java.util.List<MessageDigestErrorEntry>
public boolean add(MessageDigestErrorEntry ame)
add
in interface java.util.Collection<MessageDigestErrorEntry>
add
in interface java.util.List<MessageDigestErrorEntry>
add
in class java.util.AbstractCollection<MessageDigestErrorEntry>
public MessageDigestErrorEntry get(int index)
get
in interface java.util.List<MessageDigestErrorEntry>
public MessageDigestErrorEntry set(int index, MessageDigestErrorEntry element)
set
in interface java.util.List<MessageDigestErrorEntry>
public void add(int index, MessageDigestErrorEntry element)
add
in interface java.util.List<MessageDigestErrorEntry>
public MessageDigestErrorEntry remove(int index)
remove
in interface java.util.List<MessageDigestErrorEntry>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<MessageDigestErrorEntry>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<MessageDigestErrorEntry>
public java.util.ListIterator<MessageDigestErrorEntry> listIterator()
listIterator
in interface java.util.List<MessageDigestErrorEntry>
public java.util.ListIterator<MessageDigestErrorEntry> listIterator(int index)
listIterator
in interface java.util.List<MessageDigestErrorEntry>
public java.util.List<MessageDigestErrorEntry> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<MessageDigestErrorEntry>
public java.util.Iterator<MessageDigestErrorEntry> iterator()
iterator
in interface java.lang.Iterable<MessageDigestErrorEntry>
iterator
in interface java.util.Collection<MessageDigestErrorEntry>
iterator
in interface java.util.List<MessageDigestErrorEntry>
iterator
in class java.util.AbstractCollection<MessageDigestErrorEntry>
public int size()
size
in interface java.util.Collection<MessageDigestErrorEntry>
size
in interface java.util.List<MessageDigestErrorEntry>
size
in class java.util.AbstractCollection<MessageDigestErrorEntry>