@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());
 }
Exemple #2
0
 @Override
 default Match.MatchMonad.Of<Tree<T>> match() {
   return Match.of(this);
 }