class MessageErrorDigest extends AbstractCollection<MessageDigestErrorEntry> implements Serializable,
    List<MessageDigestErrorEntry> {

  @Override
  public boolean add(MessageDigestErrorEntry ame) {
    while (errorMessages.size() >= getMaxMessages()) {
      errorMessages.remove(0);
    }
    return errorMessages.add(ame);
  }

  public  MessageErrorDigest();
  public  MessageErrorDigest(Collection<MessageDigestErrorEntry> original);
  public  MessageErrorDigest(int size, Collection<MessageDigestErrorEntry> original);
  public  MessageErrorDigest(MessageErrorDigest digest, int fromIndex);
  public  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex);
  public  MessageErrorDigest(MessageErrorDigest digest, int fromIndex, int toIndex);
  public  MessageErrorDigest(int size, MessageErrorDigest digest, int fromIndex, int toIndex);

}