Skip to content

Instantly share code, notes, and snippets.

View greyfairer's full-sized avatar

Geert Pante greyfairer

  • HI10SI
  • Belgium
  • 16:40 (UTC +02:00)
View GitHub Profile
@mariofusco
mariofusco / Try.java
Last active June 13, 2019 07:26
A Java 8 Try
import java.util.*;
import java.util.function.*;
import static java.util.Optional.*;
public abstract class Try<T> {
private Try() { }
public static <T> Try<T> success(T value) {