- Type Parameters:
T
- the entry type
- All Implemented Interfaces:
Supplier<T>
- Enclosing class:
Configurations
public static final class Configurations.Entry<T>
extends Object
implements Supplier<T>
A configuration entry.
- Since:
- 0.1.0
- Author:
- squid233
-
Method Summary
Returns the value, or the default value if it is null
.
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
set
Sets the value.
- Parameters:
value
- the value
-
get
Returns the value, or the default value if it is null
.
- Specified by:
get
in interface Supplier<T>
- Returns:
- the value, or the default value if it is
null