of static method

Optional<String> of(
  1. String value
)

Implementation

static Optional<String> of(final String value) {
  return notBlank(value) // @formatter:off
      ? present(value)
     : empty<String>(); // @formatter:on
}