Open
Description
The containsValues()'s tests accept this wrong solution.
This solution doesn't work if in the bucket's element are more than one Node.
@Override public boolean containsValue(V value) { return Arrays.stream(table) .filter(Objects::nonNull) .map(node -> node.value) .anyMatch(v -> v.equals(value)); }
Metadata
Metadata
Assignees
Labels
No labels