@Test public void testDoEquivalent() { Buckets a = new BucketsBuilder().build(); Buckets b = new BucketsBuilder().build(); eq.doEquivalent(a, b); }
@Override protected boolean doEquivalent(Buckets a, Buckets b) { Set<Bucket> setA = new HashSet<>(); Set<Bucket> setB = new HashSet<>(); if (a.getBucket() != null) { setA = new HashSet<>(a.getBucket()); } if (b.getBucket() != null) { setB = new HashSet<>(b.getBucket()); } return setA.equals(setB); }
BucketsEquivalence extends Equivalence<Buckets> { @Override protected boolean doEquivalent(Buckets a, Buckets b) { Set<Bucket> setA = new HashSet<>(); Set<Bucket> setB = new HashSet<>(); if (a.getBucket() != null) { setA = new HashSet<>(a.getBucket()); } if (b.getBucket() != null) { setB = new HashSet<>(b.getBucket()); } return setA.equals(setB); } }
BucketsEquivalence extends Equivalence<Buckets> { @Override protected boolean doEquivalent(Buckets a, Buckets b) { Set<Bucket> setA = new HashSet<>(); Set<Bucket> setB = new HashSet<>(); if (a.getBucket() != null) { setA = new HashSet<>(a.getBucket()); } if (b.getBucket() != null) { setB = new HashSet<>(b.getBucket()); } return setA.equals(setB); } BucketsEquivalence(); }
BucketsEquivalence extends Equivalence<Buckets> { @Override protected boolean doEquivalent(Buckets a, Buckets b) { Set<Bucket> setA = new HashSet<>(); Set<Bucket> setB = new HashSet<>(); if (a.getBucket() != null) { setA = new HashSet<>(a.getBucket()); } if (b.getBucket() != null) { setB = new HashSet<>(b.getBucket()); } return setA.equals(setB); } BucketsEquivalence();  }
BucketsEquivalence extends Equivalence<Buckets> { @Override protected boolean doEquivalent(Buckets a, Buckets b) { Set<Bucket> setA = new HashSet<>(); Set<Bucket> setB = new HashSet<>(); if (a.getBucket() != null) { setA = new HashSet<>(a.getBucket()); } if (b.getBucket() != null) { setB = new HashSet<>(b.getBucket()); } return setA.equals(setB); } BucketsEquivalence();   }