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