@Override public boolean add(ITEM e) { if ( ! permitAddAfterFreeze) throwIfFrozen(); return super.add(e); }
@Override public boolean remove(Object o) { throwIfFrozen(); return super.remove(o); }
@Override public boolean removeAll(Collection<?> c) { throwIfFrozen(); return super.removeAll(c); }
@Override public ITEM set(int index, ITEM e) { throwIfFrozen(); return super.set(index, e); }
@Override public boolean addAll(Collection<? extends ITEM> a) { if ( ! permitAddAfterFreeze) throwIfFrozen(); return super.addAll(a); }
@Override protected void removeRange(int fromIndex, int toIndex) { throwIfFrozen(); super.removeRange(fromIndex, toIndex); }
@Override public boolean retainAll(Collection<?> c) { throwIfFrozen(); return super.retainAll(c); }
@Override public void clear() { throwIfFrozen(); super.clear(); }
/** * Returns a String containing the string representation of all elements from * the given collection, separated by the separator string. * * @param collection The collection * @param sep The separator string * @return A string: elem(0) + sep + ... + elem(N) */ public static String mkString(Collection<?> collection, String sep) { return mkString(collection, "", sep, ""); }
@Override protected MessageDigest initialValue() { return createMD5(); } }
private void makeWritable() { if (writable) return; map = copyMap(map); writable = true; entrySet = null; }
@Override public Set<Entry<K, V>> entrySet() { if (entrySet == null) entrySet = new EntrySet(); return entrySet; }
@Override public boolean addAll(final Collection<? extends E> arg) { boolean changed = false; for (final E entry : arg) { changed |= add(entry); } return changed; }
/** * Returns an annotation on this item, or null if the annotation is not set */ public Object getAnnotation(String annotation) { if (annotations == null) { return null; } return annotations.get(annotation); }
private void append(final Object arg) { if (size == entries.length) { grow(); } entries[size++] = arg; }
@Override public void add(int index, ITEM e) { throwIfFrozen(); super.add(index, e); }
@Override public ITEM remove(int index) { throwIfFrozen(); return super.remove(index); }
@Override public boolean addAll(int index, Collection<? extends ITEM> a) { throwIfFrozen(); return super.addAll(index, a); }