langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/model/FilteredMemberList.java
changeset 42827 36468b5fa7f4
parent 25874 83c19f00452c
equal deleted inserted replaced
42826:563b42fc70ba 42827:36468b5fa7f4
    69         throw new IndexOutOfBoundsException();
    69         throw new IndexOutOfBoundsException();
    70     }
    70     }
    71 
    71 
    72     // A more efficient implementation than AbstractList's.
    72     // A more efficient implementation than AbstractList's.
    73     public Iterator<Symbol> iterator() {
    73     public Iterator<Symbol> iterator() {
    74         return scope.getSymbols(new Filter<Symbol>() {
    74         return scope.getSymbols(t -> !unwanted(t), NON_RECURSIVE).iterator();
    75             public boolean accepts(Symbol t) {
       
    76                 return !unwanted(t);
       
    77             }
       
    78         }, NON_RECURSIVE).iterator();
       
    79     }
    75     }
    80 
    76 
    81     /**
    77     /**
    82      * Tests whether this is a symbol that should never be seen by
    78      * Tests whether this is a symbol that should never be seen by
    83      * clients, such as a synthetic class.  Returns true for null.
    79      * clients, such as a synthetic class.  Returns true for null.