jedi.example.OptionExample Maven / Gradle / Ivy
package jedi.example;
import static jedi.option.Options.some;
import jedi.option.Option;
import jedi.option.OptionMatcher;
public class OptionExample {
public static void main(String[] args) {
Option x = some("foo");
x.match(new OptionMatcher() {
public void caseNone() {
System.out.println("oops, shouldn't be here");
}
public void caseSome(String value) {
System.out.println("matched " + value);
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy