MCPcopy Create free account
hub / github.com/apache/thrift / some

Method some

lib/java/src/main/java/org/apache/thrift/Option.java:135–137  ·  view source on GitHub ↗

Wrap value in a Some type (NB! value must not be null!) @param value the value to wrap. @param the type of value @return a new Some(value)

(T value)

Source from the content-addressed store, hash-verified

133 * @return a new Some(value)
134 */
135 public static <T> Some<T> some(T value) {
136 return new Some<T>(value);
137 }
138
139 @SuppressWarnings("unchecked")
140 public static <T> None<T> none() {

Callers 2

testMakeSomeMethod · 0.95
fromNullableMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMakeSomeMethod · 0.76