SampledSetImpl implements SampledSet<T> { @Override public boolean hasChanged() { return dirty.getAndSet(false); } @Deprecated  SampledSetImpl(
      int maxSetSize,
      DigestFunction<T> digestFunction,
      SnapshotableSet<T> baseSet,
      SetFactory<T, SnapshotableSet<T>> setFactory,
      int currentSampleRate);  SampledSetImpl(
      int maxSetSize,
      DigestFunction<T> digestFunction,
      SetFactory<T, SnapshotableSet<T>> setFactory); @Override boolean add(T element); @Override int getMaxSetSize(); @Override int getScaledSize(); @Override int getSampleRate(); @Override int getSize(); @Override Set<T> getEntries(); @Override SampledSetSnapshot<T> sampleAt(int rate); @Override SampledSet<T> merge(SampledSet<T> sampledSet); @Override boolean mergeInPlaceWith(SampledSet<T> sampledSet); @Override boolean hasChanged(); @Override Iterator<T> iterator(); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Object[] toArray(); @Override V[] toArray(V[] a); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends T> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear(); @Override SampledSet<T> makeSnapshot(); @Override SampledSet<T> makeTransientSnapshot(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test(groups = "fast") public void testHasChanged() throws Exception { Assert.assertFalse(integerSet.hasChanged()); Assert.assertFalse(integerSet.merge(integerSet).hasChanged()); }