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 areConstandEphemeralConst.- 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 Tapply(T[] value)The apply method will always returns thevalue().intarity()The arity ofValobjects is always zero.booleanequals(Object obj)inthashCode()Stringname()Return the name of the operation.abstract Tvalue()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
-
-