> + @Override
> + protected Function<Object, IterableWithMarker<SecurityGroup>>
> markerToNextForArg0(Optional<Object> arg0) {
> + String region = arg0.isPresent() ? arg0.get().toString() : null;
> + final SecurityGroupApi securityGroupApi =
> api.getSecurityGroupApi(region).get();
> + return new Function<Object, IterableWithMarker<SecurityGroup>>() {
> +
> + @SuppressWarnings("unchecked")
> + @Override
> + public IterableWithMarker<SecurityGroup> apply(Object input) {
> + PaginationOptions paginationOptions =
> PaginationOptions.class.cast(input);
> + return
> IterableWithMarker.class.cast(securityGroupApi.listSecurityGroups(paginationOptions));
> + }
> +
> + @Override
> + public String toString() {
> + return "listSecurityGroups()";
See question above: do we commonly toString these based on the method that is
ultimately calling them?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/132/files#r17027626