@Test public void testGuavaFunction() { ImmutableList<GuavaRequest> gets = ImmutableList.of(GET("foo")); gets = FluentIterable.from(gets).transform(modPath(path -> "/" + path)).toList(); assertThat(gets.size(), is(1)); assertThat(getPath(gets.get(0)), is("/foo")); }
public static Request GET(String path) { return Requests.GET(path); }
Request { public static Request GET(String path) { return Requests.GET(path); } }
Request { public static Request GET(String path) { return Requests.GET(path); }  }
Request { public static Request GET(String path) { return Requests.GET(path); }  static Request GET(String path); static Request PUT(String path, String body); static Request lazy(F0<Request> requestExpression); abstract X match(Cases<X> cases); @Override abstract int hashCode(); @Override abstract boolean equals(Object obj); @Override abstract String toString(); final String path(); final Option<String> body(); final Request withPath(String newPath); final Request withBody(String newBody); }
Request { public static Request GET(String path) { return Requests.GET(path); }  static Request GET(String path); static Request PUT(String path, String body); static Request lazy(F0<Request> requestExpression); abstract X match(Cases<X> cases); @Override abstract int hashCode(); @Override abstract boolean equals(Object obj); @Override abstract String toString(); final String path(); final Option<String> body(); final Request withPath(String newPath); final Request withBody(String newBody); static final Lens<Request, String> _path; static final Lens<Request, String> _pathPatternMatch; }