src/share/classes/com/sun/tools/javac/code/Type.java

changeset 828
19c900c703c6
parent 816
7c537f4298fb
child 880
0c24826853b2
equal deleted inserted replaced
827:b6f95173e769 828:19c900c703c6
361 361
362 public static boolean containsAny(List<Type> ts1, List<Type> ts2) { 362 public static boolean containsAny(List<Type> ts1, List<Type> ts2) {
363 for (Type t : ts1) 363 for (Type t : ts1)
364 if (t.containsAny(ts2)) return true; 364 if (t.containsAny(ts2)) return true;
365 return false; 365 return false;
366 }
367
368 public static List<Type> filter(List<Type> ts, Filter<Type> tf) {
369 ListBuffer<Type> buf = ListBuffer.lb();
370 for (Type t : ts) {
371 if (tf.accepts(t)) {
372 buf.append(t);
373 }
374 }
375 return buf.toList();
366 } 376 }
367 377
368 public boolean isSuperBound() { return false; } 378 public boolean isSuperBound() { return false; }
369 public boolean isExtendsBound() { return false; } 379 public boolean isExtendsBound() { return false; }
370 public boolean isUnbound() { return false; } 380 public boolean isUnbound() { return false; }

mercurial