equal
deleted
inserted
replaced
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; } |