Package io.jenetics.prog.op
Class Val<T>
- java.lang.Object
-
- io.jenetics.prog.op.Val<T>
-
- Type Parameters:
T
- the type of the constant value
- Direct Known Subclasses:
Const
,EphemeralConst
public abstract class Val<T> extends Object implements Op<T>
This is the sealed base class for unmodifiable values. The only sub-classes of this type areConst
andEphemeralConst
.- Since:
- 5.0
- Version:
- 5.0
- See Also:
Const
,EphemeralConst
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
apply(T[] value)
The apply method will always returns thevalue()
.int
arity()
The arity ofVal
objects is always zero.boolean
equals(Object obj)
int
hashCode()
String
name()
Return the name of the operation.abstract T
value()
Return the constant value.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenetics.prog.op.Op
get, isTerminal
-
-