Package io.jenetics.ext.rewriting
Class TreePattern.Val<V>
- java.lang.Object
-
- io.jenetics.ext.rewriting.TreePattern.Decl<V>
-
- io.jenetics.ext.rewriting.TreePattern.Val<V>
-
- Type Parameters:
V
- the node value type
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TreePattern<V>
public static final class TreePattern.Val<V> extends TreePattern.Decl<V> implements Serializable
This class represents a constant pattern value, which can be part of a whole sub-tree. It is one of two implementations of the sealedTreePattern.Decl
class.- See Also:
TreePattern.Var
, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
static <V> TreePattern.Val<V>
of(V value)
Create a new value object.String
toString()
V
value()
-
-
-
Method Detail
-
of
public static <V> TreePattern.Val<V> of(V value)
Create a new value object.- Type Parameters:
V
- the node type- Parameters:
value
- the underlying pattern value- Returns:
- a new value object
-
-