diff --git a/src/main/java/gr/james/sampling/SkipFunction.java b/src/main/java/gr/james/sampling/SkipFunction.java new file mode 100644 index 0000000..860aad4 --- /dev/null +++ b/src/main/java/gr/james/sampling/SkipFunction.java @@ -0,0 +1,15 @@ +package gr.james.sampling; + +/** + * A skip function returns how many elements to skip. + */ +@Deprecated +@FunctionalInterface +interface SkipFunction { + /** + * Returns a {@code long} indicating how many elements the algorithm must skip. + * + * @return how many elements the algorithm must skip + */ + long skip(); +}