samples/erasure/src-api1.0/api/Erasure.java
changeset 409 40cabcdcd2be
parent 380 a2e90b86638a
     1.1 --- a/samples/erasure/src-api1.0/api/Erasure.java	Tue Oct 18 07:10:23 2011 +0200
     1.2 +++ b/samples/erasure/src-api1.0/api/Erasure.java	Thu Oct 30 21:30:10 2014 +0100
     1.3 @@ -1,13 +1,13 @@
     1.4  package api;
     1.5  
     1.6 -import java.util.Set;
     1.7 +import java.util.Collection;
     1.8  
     1.9  public class Erasure {
    1.10      private Erasure() {
    1.11      }
    1.12  
    1.13      // BEGIN: variance.erasure.v1
    1.14 -    public static boolean arePositive(Set<? extends Integer> numbers) {
    1.15 +    public static boolean arePositive(Collection<? extends Integer> numbers) {
    1.16          for (Integer n : numbers) {
    1.17              if (n <= 0) {
    1.18                  return false;