@Test public void shouldConvertToCharSeq() { Value<Character> v = of('a', 'b', 'c'); assertThat( Match.of(v) .whenTypeIn(Iterator.class) .then(Iterator.of("ignore").toString()) .getOrElse(v.toString())) .isEqualTo(v.toCharSeq().toString()); }
@Override default Match.MatchMonad.Of<Tree<T>> match() { return Match.of(this); }