Class CountingCallback
java.lang.Object
de.tilman_neumann.jml.primes.exact.CountingCallback
- All Implemented Interfaces:
SieveCallback
public class CountingCallback extends java.lang.Object implements SieveCallback
Simple callback just counting the primes coming in.
-
Constructor Summary
Constructors Constructor Description CountingCallback() -
Method Summary
Modifier and Type Method Description longgetCount()voidprocessPrime(long prime)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CountingCallback
public CountingCallback()
-
-
Method Details
-
processPrime
public void processPrime(long prime)- Specified by:
processPrimein interfaceSieveCallback
-
getCount
public long getCount()
-