- Type Parameters:
T - the type of the constant value
- All Implemented Interfaces:
Op<T>, Function<T[],T>, Supplier<Op<T>>
- Direct Known Subclasses:
Const, EphemeralConst
This is the
sealed base class for unmodifiable values. The only
subclasses of this type are
Const and
EphemeralConst.
- Since:
- 5.0
- Version:
- 7.0
- See Also:
-
-
Method Summary
The apply method will always return the
value().
final int
The arity of Val objects is always zero.
final boolean
final int
Return the name of the operation.
Return the constant value.
-
Method Details
-
name
Description copied from interface: Op
Return the name of the operation.
- Specified by:
name in interface Op<T>
- Returns:
- the name of the operation
-
value
Return the constant value.
- Returns:
- the constant value
-
apply
The apply method will always return the
value().
- Specified by:
apply in interface Function<T[],T>
- Parameters:
value - the input parameters will be ignored
- Returns:
- always
value()
-
arity
The arity of Val objects is always zero.
- Specified by:
arity in interface Op<T>
- Returns:
- always zero
-
-