/** * Checks for all objects of a given Collection to be contained in this * iterator. * * @param c * Collection<?> * @return boolean * @throws net.sourceforge.ondex.exception.type.AccessDeniedException */ @Override public boolean containsAll(Collection<?> c) { if (size() == 0) return false; for (Object aC : c) { if (!contains(aC)) { return false; } } return true; }
/** * Returns true if this collection contains no elements. * * @return true if this collection contains no elements */ @Override public boolean isEmpty() { return (size() == 0); }