Class Optional<T>
java.lang.Object
com.bazaarvoice.jolt.common.Optional<T>
We cannot go away from this Optional to java 8 Optional because, this Optional gives as three states!
Where a value can an Object, a null (which is a valid json value) and absent,
which is not possible with Java 8 Optional.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
obj
-
abs
private final boolean abs -
EMPTY
-
-
Constructor Details
-
Optional
private Optional() -
Optional
-
-
Method Details
-
empty
-
of
-
get
-
isPresent
public boolean isPresent() -
equals
-
toString
-