> +    @Override
> +    public boolean apply(String input) {
> +        checkNotNull(input, "Virtual item id can't be null.");
> +        switch (domain) {
> +            case DATACENTER:
> +                return expect == 
> api.dataCenterApi().getDataCenterState(input);
> +            case SERVER:
> +                return expect == api.serverApi().getServer(input).state();
> +            case STORAGE:
> +                return expect == api.storageApi().getStorage(input).state();
> +            case SNAPSHOT:
> +                return expect == 
> api.snapshotApi().getSnapshot(input).state();
> +            default:
> +                throw new IllegalArgumentException("Unknown domain '" + 
> domain + "'");
> +        }
> +    }
>  
>  }

Format this class according to the style guide.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/136/files#r25149848

Reply via email to