T - the value typepublic final class InjectedSetValue<T> extends java.lang.Object implements Value<java.util.Set<T>>
Set value that can have entries injected into it. The underlying set is an instance of LinkedHashSet, so
iteration order will be consistent.
The injector() method is used to get an injector that can inject into the set.| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<T> |
cachedValue |
private java.util.Set<T> |
value |
| Constructor and Description |
|---|
InjectedSetValue()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
addItem(T item) |
java.util.Set<T> |
getValue()
Get the actual value.
|
Injector<T> |
injector()
Gets an injector for this set.
|
private void |
removeItem(T item) |
private final java.util.Set<T> value
private volatile java.util.Set<T> cachedValue