public MemoryIndexStoreEntry next(){
  if (valuesIterator == null) {
    currentEntry.setMemoryIndexStoreEntry(currKey,(RegionEntry)currValue);
    return currentEntry;
  }
  RegionEntry re=(RegionEntry)valuesIterator.next();
  if (re == null)   throw new NoSuchElementException();
  currentEntry.setMemoryIndexStoreEntry(currKey,re);
  return currentEntry;
}

public MemoryIndexStoreEntry next ( ) { if ( valuesIterator == null ) { currentEntry . setMemoryIndexStoreEntry ( currKey , ( RegionEntry ) currValue ) ; return currentEntry ; } RegionEntry re = ( RegionEntry ) valuesIterator . next ( ) ; if ( re == null ) throw new NoSuchElementException ( ) ; currentEntry . setMemoryIndexStoreEntry ( currKey , re ) ; return currentEntry ; }
returns a new inmemoryindexstorageentry with current index key and its next value which is the next re in the collection . make sure hasnext ( ) has been called before calling this method
