Code example for Function

Methods: apply, getClass

0
      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);
   } 
 
   @Override 
   public boolean equals(Object o) { 
      if (this == o)
         return true; 
      if (o == null || getClass() != o.getClass())
         return false;