Skip to content

Commit

Permalink
Add SkipFunction interface as a test
Browse files Browse the repository at this point in the history
  • Loading branch information
gstamatelat committed Jul 2, 2018
1 parent 9a0eba0 commit ace814d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/java/gr/james/sampling/SkipFunction.java
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit ace814d

Please sign in to comment.