public boolean add(T o) { if (o == null) { throw new IllegalArgumentException("Cannot add \"null\" to an IterableSet."); } if (contains(o)) { return false; } return super.add(o); }
/** Constructs a HashChain filled with the contents of the src Chain. */ public HashChain(Chain<E> src) { this(); for (E e : src) { add(e); } }
/** Constructs a HashChain filled with the contents of the src Chain. */ public HashChain(Chain<E> src) { this(); for (E e : src) { add(e); } }
public boolean add( Object o) { if (o == null) throw new IllegalArgumentException( "Cannot add \"null\" to an IterableSet."); if (contains( o)) return false; return super.add( o); }
public boolean add( Object o) { if (o == null) throw new IllegalArgumentException( "Cannot add \"null\" to an IterableSet."); if (contains( o)) return false; return super.add( o); }