langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/model/FilteredMemberList.java
equal
deleted
inserted
replaced
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. |