public final class MostlySingleton<T> extends AbstractMostlySingleton<T>
Objects.equals for
object comparison and a HashSet for backing storage.AbstractMostlySingleton.Stateset, state, value| Constructor and Description |
|---|
MostlySingleton()
Create a MostlySingleton.
|
MostlySingleton(T value)
Create a MostlySingleton.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
contains(@Nullable Object o) |
addAll, clear, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, stream