jooby/src/main/java/org/jooby/Result.java
@Nonnull
  public Optional<Object> ifGet(final List<MediaType> types) {
    return Optional.ofNullable(value);
  }
@Nonnull
  public Optional<Object> ifGet(final List<MediaType> types) {
    return Optional.ofNullable(value);
  }
@ Nonnull public Optional < Object > ifGet ( final List < MediaType > types ) { return Optional . ofNullable ( value ) ; }
Get a result value for the given types (accept header).

@param types Accept header.
@return Result content.
Get a result value for the given types ( accept header ) .