Modifier and Type | Class and Description |
---|---|
static class |
Matchable.AsMatchable.CoercedMatchable<T> |
Constructor and Description |
---|
AsMatchable() |
Modifier and Type | Method and Description |
---|---|
static <T> Matchable.MatchableObject<T> |
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 <T> Matchable.MatchableObject<T> asMatchable(java.lang.Object toCoerce)
toCoerce
- Object to convert into a Matchable