List of utility methods to do Collection Duplicate Remove
boolean | hasUniqueObject(Collection collection) Determine whether the given Collection only contains a single unique object. if (isEmpty(collection)) { return false; boolean hasCandidate = false; Object candidate = null; for (Object elem : collection) { if (!hasCandidate) { hasCandidate = true; ... |
boolean | hasUniqueObject(Collection> collection) Determine whether the given Collection only contains a single unique object. if (isEmpty(collection)) { return false; boolean hasCandidate = false; Object candidate = null; for (Object elem : collection) { if (!hasCandidate) { hasCandidate = true; ... |