Class OptionalUtil

java.lang.Object
org.codelibs.fess.util.OptionalUtil

public class OptionalUtil extends Object
Utility class for Optional operations.
  • 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