@Test public void testGet() throws Exception { MessageErrorDigest digest = new MessageErrorDigest(); MessageDigestErrorEntry error = createMessageError("1", "workflow1", new Exception()); digest.add(error); digest.addAll(createListOfErrors(4, 2)); assertEquals(error, digest.get(0)); }
@Override public MessageDigestErrorEntry get(int index) { return errorMessages.get(index); }
MessageErrorDigest extends AbstractCollection<MessageDigestErrorEntry> implements Serializable,
    List<MessageDigestErrorEntry> { @Override public MessageDigestErrorEntry get(int index) { return errorMessages.get(index); } }
MessageErrorDigest extends AbstractCollection<MessageDigestErrorEntry> implements Serializable,
    List<MessageDigestErrorEntry> { @Override public MessageDigestErrorEntry get(int index) { return errorMessages.get(index); } MessageErrorDigest();  MessageErrorDigest(Collection<MessageDigestErrorEntry> original);  MessageErrorDigest(int size, Collection<MessageDigestErrorEntry> original);  MessageErrorDigest(MessageErrorDigest digest, int fromIndex);  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex);  MessageErrorDigest(MessageErrorDigest digest, int fromIndex, int toIndex);  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex, int toIndex); }
MessageErrorDigest extends AbstractCollection<MessageDigestErrorEntry> implements Serializable,
    List<MessageDigestErrorEntry> { @Override public MessageDigestErrorEntry get(int index) { return errorMessages.get(index); } MessageErrorDigest();  MessageErrorDigest(Collection<MessageDigestErrorEntry> original);  MessageErrorDigest(int size, Collection<MessageDigestErrorEntry> original);  MessageErrorDigest(MessageErrorDigest digest, int fromIndex);  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex);  MessageErrorDigest(MessageErrorDigest digest, int fromIndex, int toIndex);  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex, int toIndex); int getMaxMessages(); void setMaxMessages(int maxMessages); @Override boolean addAll(int index, Collection<? extends MessageDigestErrorEntry> c); @Override boolean add(MessageDigestErrorEntry ame); @Override MessageDigestErrorEntry get(int index); @Override MessageDigestErrorEntry set(int index, MessageDigestErrorEntry element); @Override void add(int index, MessageDigestErrorEntry element); @Override MessageDigestErrorEntry remove(int index); @Override int indexOf(Object o); @Override int lastIndexOf(Object o); @Override ListIterator<MessageDigestErrorEntry> listIterator(); @Override ListIterator<MessageDigestErrorEntry> listIterator(int index); @Override List<MessageDigestErrorEntry> subList(int fromIndex, int toIndex); @Override Iterator<MessageDigestErrorEntry> iterator(); @Override int size(); }
MessageErrorDigest extends AbstractCollection<MessageDigestErrorEntry> implements Serializable,
    List<MessageDigestErrorEntry> { @Override public MessageDigestErrorEntry get(int index) { return errorMessages.get(index); } MessageErrorDigest();  MessageErrorDigest(Collection<MessageDigestErrorEntry> original);  MessageErrorDigest(int size, Collection<MessageDigestErrorEntry> original);  MessageErrorDigest(MessageErrorDigest digest, int fromIndex);  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex);  MessageErrorDigest(MessageErrorDigest digest, int fromIndex, int toIndex);  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex, int toIndex); int getMaxMessages(); void setMaxMessages(int maxMessages); @Override boolean addAll(int index, Collection<? extends MessageDigestErrorEntry> c); @Override boolean add(MessageDigestErrorEntry ame); @Override MessageDigestErrorEntry get(int index); @Override MessageDigestErrorEntry set(int index, MessageDigestErrorEntry element); @Override void add(int index, MessageDigestErrorEntry element); @Override MessageDigestErrorEntry remove(int index); @Override int indexOf(Object o); @Override int lastIndexOf(Object o); @Override ListIterator<MessageDigestErrorEntry> listIterator(); @Override ListIterator<MessageDigestErrorEntry> listIterator(int index); @Override List<MessageDigestErrorEntry> subList(int fromIndex, int toIndex); @Override Iterator<MessageDigestErrorEntry> iterator(); @Override int size(); static final int DEFAULT_MAX_MESSAGES; }