@Test(expected = IllegalArgumentException.class) public void hash_organizationName_null() { AffMatchAffiliation aff = new AffMatchAffiliation("XXX", 1); hasher.hash(aff); }
@Override public String hash(AffMatchAffiliation affiliation) { Preconditions.checkNotNull(affiliation); Preconditions.checkArgument(StringUtils.isNotBlank(affiliation.getOrganizationName())); return stringHasher.hash(affiliation.getOrganizationName()); }
AffiliationOrgNameBucketHasher implements BucketHasher<AffMatchAffiliation> { @Override public String hash(AffMatchAffiliation affiliation) { Preconditions.checkNotNull(affiliation); Preconditions.checkArgument(StringUtils.isNotBlank(affiliation.getOrganizationName())); return stringHasher.hash(affiliation.getOrganizationName()); } }
AffiliationOrgNameBucketHasher implements BucketHasher<AffMatchAffiliation> { @Override public String hash(AffMatchAffiliation affiliation) { Preconditions.checkNotNull(affiliation); Preconditions.checkArgument(StringUtils.isNotBlank(affiliation.getOrganizationName())); return stringHasher.hash(affiliation.getOrganizationName()); }  }
AffiliationOrgNameBucketHasher implements BucketHasher<AffMatchAffiliation> { @Override public String hash(AffMatchAffiliation affiliation) { Preconditions.checkNotNull(affiliation); Preconditions.checkArgument(StringUtils.isNotBlank(affiliation.getOrganizationName())); return stringHasher.hash(affiliation.getOrganizationName()); }  @Override String hash(AffMatchAffiliation affiliation); void setStringHasher(BucketHasher<String> stringHasher); }
AffiliationOrgNameBucketHasher implements BucketHasher<AffMatchAffiliation> { @Override public String hash(AffMatchAffiliation affiliation) { Preconditions.checkNotNull(affiliation); Preconditions.checkArgument(StringUtils.isNotBlank(affiliation.getOrganizationName())); return stringHasher.hash(affiliation.getOrganizationName()); }  @Override String hash(AffMatchAffiliation affiliation); void setStringHasher(BucketHasher<String> stringHasher);  }