Ejemplo n.º 1
0
 protected internal override bool FetchNext()
 {
     if (CurrentIteratorConflict == null || !CurrentIteratorConflict.hasNext())
     {
         while (Iterators.MoveNext())
         {
             CurrentIteratorConflict = Iterators.Current;
             if (CurrentIteratorConflict.hasNext())
             {
                 break;
             }
         }
     }
     return((CurrentIteratorConflict != null && CurrentIteratorConflict.hasNext()) && Next(CurrentIteratorConflict.next()));
 }
Ejemplo n.º 2
0
 protected internal override bool FetchNext()
 {
     while (Source.hasNext())
     {
         int testItem = Source.next();
         if (Test(testItem))
         {
             return(Next(testItem));
         }
     }
     return(false);
 }
Ejemplo n.º 3
0
 public override bool HasNext()
 {
     return(Delegate.hasNext());
 }