T - the export typepublic interface Export<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Export.Pointer<T>
A pointer to the value of an export.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the export
|
Export<T> |
computeIfAbsent(Supplier<? extends T> other)
Uses the provided function to compute a value if one isn't already present.
|
boolean |
containsValue()
Gets if this export has a value
|
T |
get()
Gets the current value of the export
|
T |
get(T other)
Gets the current value of the export, or returns the other if a value
isn't present.
|
String |
name()
Gets the name of the export
|
Export.Pointer<T> |
pointer()
Returns a pointer to this export
|
Export<T> |
put(T value)
Sets the value of the export
|
Export<T> |
putIfAbsent(T value)
Sets the value of the export if a value isn't already present,
then returns the export
|
String name()
Export.Pointer<T> pointer()
T get()
T get(T other)
other - the other valueExport<T> put(T value)
value - the value to setExport<T> putIfAbsent(T value)
value - the value to set if absentExport<T> computeIfAbsent(Supplier<? extends T> other)
other - the other valueboolean containsValue()
void clear()
Copyright © 2018. All rights reserved.