> + public boolean equals(Object o) {
> + if (this == o)
> + return true;
> + if (o == null || getClass() != o.getClass())
> + return false;
> +
> + ContainerEntity containerEntity = (ContainerEntity) o;
> +
> + return containerAccess == containerEntity.containerAccess &&
> !(creationDate != null ?
> + !creationDate.equals(containerEntity.creationDate) :
> + containerEntity.creationDate != null) && !(id != null ?
> !id.equals(containerEntity.id) : containerEntity.id != null) && !(
> + name != null ? !name.equals(containerEntity.name) :
> containerEntity.name != null);
> + }
> +
> + @Override
> + public int hashCode() {
Use guava helpers for hashcode/equals/tostring, to reduce code:
https://code.google.com/p/guava-libraries/wiki/CommonObjectUtilitiesExplained
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/176/files#r32111924