Package org.codelibs.fess.util
Class OptionalUtil
java.lang.Object
org.codelibs.fess.util.OptionalUtil
Utility class for Optional operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.dbflute.optional.OptionalEntity<T> ofNullable(T entity) Creates an OptionalEntity from a nullable entity.
-
Method Details
-
ofNullable
public static <T> org.dbflute.optional.OptionalEntity<T> ofNullable(T entity) Creates an OptionalEntity from a nullable entity.- Type Parameters:
T- the type of the entity- Parameters:
entity- the entity (can be null)- Returns:
- the OptionalEntity
-