public final class MostlySingleton<T> extends AbstractMostlySingleton<T>
Objects.equals
for
object comparison and a HashSet
for backing storage.AbstractMostlySingleton.State
set, 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(Object o) |
addAll, clear, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream