Code example for Function

Methods: apply, getClass

      return new HttpCommand(request);
   private Function<HttpResponse, ?> getTransformer(String commandName, HttpCommand command) {
      HttpRequest request = command.getCurrentRequest();
      Function<HttpResponse, ?> transformer = transformerForRequest.apply(request);
      logger.trace("<< response from %s is parsed by %s", commandName, transformer.getClass().getSimpleName());
      return transformer;
   private boolean isFuture(Invokable<?, ?> in) {
      return in.getReturnType().getRawType().equals(ListenableFuture.class);
   public boolean equals(Object o) { 
      if (this == o)
         return true; 
      if (o == null || getClass() != o.getClass())
         return false; 
Connect your IDE to all the code out there  Get Codota for Java