示例#1
0
 public int size()
 {
     if (!_refMap._sizeIsValid)
     {
         _refMap._size = 0;
         IteratorBase <Ent> i = _refMap.entrySet().iterator();
         for (; i.hasNext(); i.next())
         {
             _refMap._size++;
         }
         _refMap._sizeIsValid = true;
     }
     return(_refMap._size);
 }
示例#2
0
 public LambdaConverterIterator(IteratorBase <TInput> iterator, Func <TInput, TOutput> converter)
 {
     _iterator  = iterator;
     _converter = converter;
 }