Method | Return Type | Parameters |
---|---|---|
add() | boolean | (E element) |
remove() | boolean | (Object object) |
isEmpty() | boolean | none |
size() | int | none |
clear() | void | none |
contains() | boolean | (Object object) |
equals() | boolean | (Object object) |
hashCode() | int | none |
Method | Info | Add Elements? | Remove Elements? | Replace Elements? |
---|---|---|---|---|
Set.of(varargs) | Immutable | No | No | No |
Set.copyOf(collection) | Immutable with given collection | No | No | No |