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.Declclass.- See Also:
TreePattern.Var, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()static <V> TreePattern.Val<V>of(V value)Create a new value object.StringtoString()Vvalue()
-
-
-
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
-
-