public boolean intersects(ArraySet<T> other) throws IllegalArgumentException { if (other == null) { throw new IllegalArgumentException("other == null"); } for (int i = 0; i < other.size(); i++) { if (contains(other.get(i))) return true; } return false; }
public boolean intersects(ArraySet<T> other) throws IllegalArgumentException { if (other == null) { throw new IllegalArgumentException("other == null"); } for (int i = 0; i < other.size(); i++) { if (contains(other.get(i))) return true; } return false; }
public boolean addAll(ArraySet<T> other) throws IllegalArgumentException { if (other == null) { throw new IllegalArgumentException("other == null"); } boolean ret = false; for (int i = 0; i < other.size(); i++) { boolean added = add(other.get(i)); ret = ret || added; } return ret; }
public boolean addAll(ArraySet<T> other) throws IllegalArgumentException { if (other == null) { throw new IllegalArgumentException("other == null"); } boolean ret = false; for (int i = 0; i < other.size(); i++) { boolean added = add(other.get(i)); ret = ret || added; } return ret; }
public boolean intersects(ArraySet<T> other) throws IllegalArgumentException { if (other == null) { throw new IllegalArgumentException("other == null"); } for (int i = 0; i < other.size(); i++) { if (contains(other.get(i))) return true; } return false; }
public boolean addAll(ArraySet<T> other) throws IllegalArgumentException { if (other == null) { throw new IllegalArgumentException("other == null"); } boolean ret = false; for (int i = 0; i < other.size(); i++) { boolean added = add(other.get(i)); ret = ret || added; } return ret; }