public class AsMatchable
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AsMatchable.CoercedMatchable |
| 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