Exemplo n.º 1
0
 public static ICollection RetainAll(ICollection c, CollectionUtilities.ObjectMatcher f)
 {
     for (IIterator it = new ILOG.J2CsMapping.Collections.IteratorAdapter(c.GetEnumerator()); it.HasNext();)
     {
         Object item = it.Next();
         if (!f.Matches(item))
         {
             it.Remove();
         }
     }
     return(c);
 }
Exemplo n.º 2
0
 public virtual bool Matches(Object value_ren)
 {
     return(!other.Matches(value_ren));
 }