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() |
MostlySingleton(T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
contains(java.lang.Object o) |
addAll, clear, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString