diff -r b632733724a8 -r a2e90b86638a samples/erasure/src-api1.0/api/Erasure.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/samples/erasure/src-api1.0/api/Erasure.java Tue Oct 18 07:10:23 2011 +0200 @@ -0,0 +1,19 @@ +package api; + +import java.util.Set; + +public class Erasure { + private Erasure() { + } + + // BEGIN: variance.erasure.v1 + public static boolean arePositive(Set numbers) { + for (Integer n : numbers) { + if (n <= 0) { + return false; + } + } + return true; + } + // END: variance.erasure.v1 +}