text: public boolean equals(Object o) {if (this == o) {return true;}if (o == null || getClass() != o.getClass()) {return false;}Arn arn = (Arn) o;if (!partition.equals(arn.partition)) {return false;}if (!service.equals(arn.service)) {return false;}if (region != null ? !region.equals(arn.region) : arn.region != null) {return false;}if (accountId != null ? !accountId.equals(arn.accountId) : arn.accountId != null) {return false;}return resource.equals(arn.resource);}