langtools/src/share/classes/com/sun/tools/javac/code/Type.java
changeset 8044 7fd529d4472c
parent 8032 e1aa25ccdabb
child 8430 be3e5581ea25
equal deleted inserted replaced
8043:c19058ce05e8 8044:7fd529d4472c
   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; }