io.norberg.automatter.example.OptionalExample Maven / Gradle / Ivy
package io.norberg.automatter.example;
import com.google.common.base.Optional;
import java.io.IOException;
import io.norberg.automatter.AutoMatter;
import static java.lang.System.out;
public class OptionalExample {
@AutoMatter
interface OptionalFoobar {
Optional foo();
Optional bar();
}
public static void main(final String... args) throws IOException {
OptionalFoobar foobar = new OptionalFoobarBuilder()
.foo("hello")
.build();
out.println("foo: " + foobar.foo());
out.println("bar: " + foobar.bar());
out.println("foobar: " + foobar);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy