public final class ConstantSet extends Object
Constructor and Description |
---|
ConstantSet(ConstantNode... constants)
Constructs a constant set containing the specified constants.
|
Modifier and Type | Method and Description |
---|---|
List<ConstantNode> |
getByType(Type type)
Returns a list of all constants in this set that are of the specified type.
|
public ConstantSet(ConstantNode... constants)
public List<ConstantNode> getByType(Type type)
type
- the type to find matching constants ofnull
if there are no constants of the required type in this setOakGP Genetic Programming Framework