Skip to content

Commit 440a876

Browse files
committed
Merge branch 'master' of https://github.com/mergeconflict/functionaljava into mergeconflict-master
2 parents c6b1fa4 + 4a6b768 commit 440a876

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/src/main/java/fj/data/Option.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,14 @@ public static <T> Option<T> some(final T t) {
668668
return new Some<T>(t);
669669
}
670670

671+
public static <T> F<T, Option<T>> none_() {
672+
return new F<T, Option<T>>() {
673+
public Option<T> f(final T t) {
674+
return none();
675+
}
676+
};
677+
}
678+
671679
/**
672680
* Constructs an optional value that has no value.
673681
*

0 commit comments

Comments
 (0)