@Test public void testDoHash() { Group a = new GroupBuilder().build(); eq.doHash(a); }
@Override protected int doHash(Group group) { final int prime = 31; int result = 1; result = prime * result + ((group.getBuckets() == null) ? 0 : EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode()); result = prime * result + ((group.getContainerName() == null) ? 0 : group.getContainerName().hashCode()); result = prime * result + ((group.getGroupName() == null) ? 0 : group.getGroupName().hashCode()); result = prime * result + ((group.getGroupType() == null) ? 0 : group.getGroupType().hashCode()); result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode()); return result; }
GroupEquivalence extends Equivalence<Group> { @Override protected int doHash(Group group) { final int prime = 31; int result = 1; result = prime * result + ((group.getBuckets() == null) ? 0 : EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode()); result = prime * result + ((group.getContainerName() == null) ? 0 : group.getContainerName().hashCode()); result = prime * result + ((group.getGroupName() == null) ? 0 : group.getGroupName().hashCode()); result = prime * result + ((group.getGroupType() == null) ? 0 : group.getGroupType().hashCode()); result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode()); return result; } }
GroupEquivalence extends Equivalence<Group> { @Override protected int doHash(Group group) { final int prime = 31; int result = 1; result = prime * result + ((group.getBuckets() == null) ? 0 : EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode()); result = prime * result + ((group.getContainerName() == null) ? 0 : group.getContainerName().hashCode()); result = prime * result + ((group.getGroupName() == null) ? 0 : group.getGroupName().hashCode()); result = prime * result + ((group.getGroupType() == null) ? 0 : group.getGroupType().hashCode()); result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode()); return result; } GroupEquivalence(); }
GroupEquivalence extends Equivalence<Group> { @Override protected int doHash(Group group) { final int prime = 31; int result = 1; result = prime * result + ((group.getBuckets() == null) ? 0 : EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode()); result = prime * result + ((group.getContainerName() == null) ? 0 : group.getContainerName().hashCode()); result = prime * result + ((group.getGroupName() == null) ? 0 : group.getGroupName().hashCode()); result = prime * result + ((group.getGroupType() == null) ? 0 : group.getGroupType().hashCode()); result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode()); return result; } GroupEquivalence();  }
GroupEquivalence extends Equivalence<Group> { @Override protected int doHash(Group group) { final int prime = 31; int result = 1; result = prime * result + ((group.getBuckets() == null) ? 0 : EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode()); result = prime * result + ((group.getContainerName() == null) ? 0 : group.getContainerName().hashCode()); result = prime * result + ((group.getGroupName() == null) ? 0 : group.getGroupName().hashCode()); result = prime * result + ((group.getGroupType() == null) ? 0 : group.getGroupType().hashCode()); result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode()); return result; } GroupEquivalence();   }