Modifier and Type | Class and Description |
---|---|
static class |
Matchable.AsMatchable.CoercedMatchable<T> |
Constructor and Description |
---|
AsMatchable() |
Modifier and Type | Method and Description |
---|---|
static Matchable |
asMatchable(java.lang.Object toCoerce)
Coerce / wrap an Object as a Matchable instance
This adds match / _match methods for pattern matching against the object
|
public static Matchable asMatchable(java.lang.Object toCoerce)
toCoerce
- Object to convert into a Matchable