Code example for Function

Methods: apply

0
   } 
 
   @Override 
   public URI apply(Object from) {
      String bucket = from.toString();
      Optional<String> region = bucketToRegion.apply(bucket);
      if (region.isPresent()) {
         return delegate.apply(region.get());
      } 
      return delegate.apply(null);
   } 
} 
Connect your IDE to all the code out there  Get Codota for Java