public List subList(int fromIndex, int toIndex) { assertOpen(); return _list.subList(fromIndex, toIndex); }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public Object writeReplace() throws ObjectStreamException { // fully traverse results if (_state == OPEN) for (Iterator itr = itr(_list.size()); itr.hasNext();) itr.next(); return _list; }
public Object get(int index) { assertOpen(); // optimization for getting sequntially if (index == _list.size()) addNext(); if (index < _list.size()) return _list.get(index); return super.get(index); }
public int size() { assertOpen(); if (_size != -1) return _size; if (_state != OPEN) return _list.size(); try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
public Object get(int index) { assertOpen(); // optimization for getting sequntially if (index == _list.size()) addNext(); if (index < _list.size()) return _list.get(index); return super.get(index); }
public int size() { assertOpen(); if (_size != -1) return _size; if (_state != OPEN) return _list.size(); try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
public Object get(int index) { assertOpen(); // optimization for getting sequntially if (index == _list.size()) addNext(); if (index < _list.size()) return _list.get(index); return super.get(index); }
public int size() { assertOpen(); if (_size != -1) return _size; if (_state != OPEN) return _list.size(); try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
public Object writeReplace() throws ObjectStreamException { // fully traverse results if (_state == OPEN) for (Iterator itr = itr(_list.size()); itr.hasNext();) itr.next(); return _list; }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public List subList(int fromIndex, int toIndex) { assertOpen(); return _list.subList(fromIndex, toIndex); }
public Object get(int index) { assertOpen(); // optimization for getting sequntially if (index == _list.size()) addNext(); if (index < _list.size()) return _list.get(index); return super.get(index); }