/** {@inheritDoc} */ public short next() { try { short next = get( cursor ); lastRet = cursor++; return next; } catch ( IndexOutOfBoundsException e ) { throw new NoSuchElementException(); } }
/** * Returns the value at the top of the stack. * * @return an <code>short</code> value */ public short peek() { return _list.get( _list.size() - 1 ); }
/** {@inheritDoc} */ public short removeAt( int offset ) { short old = get( offset ); remove( offset, 1 ); return old; }
/** * Returns a String representation of the list, top to bottom. * * @return a <code>String</code> value */ public String toString() { final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); buf.append( ", " ); } if ( size() > 0 ) { buf.append( _list.get( 0 ) ); } buf.append( "}" ); return buf.toString(); }
/** {@inheritDoc} */ public short next() { try { short next = get( cursor ); lastRet = cursor++; return next; } catch ( IndexOutOfBoundsException e ) { throw new NoSuchElementException(); } }
/** {@inheritDoc} */ @Override public short next() { try { short next = get( cursor ); lastRet = cursor++; return next; } catch ( IndexOutOfBoundsException e ) { throw new NoSuchElementException(); } }
/** {@inheritDoc} */ public short next() { try { short next = get( cursor ); lastRet = cursor++; return next; } catch ( IndexOutOfBoundsException e ) { throw new NoSuchElementException(); } }
/** {@inheritDoc} */ public short next() { try { short next = get( cursor ); lastRet = cursor++; return next; } catch ( IndexOutOfBoundsException e ) { throw new NoSuchElementException(); } }
/** {@inheritDoc} */ public short removeAt( int offset ) { short old = get( offset ); remove( offset, 1 ); return old; }
/** * Returns the value at the top of the stack. * * @return an <code>short</code> value */ public short peek() { return _list.get( _list.size() - 1 ); }
/** * Returns the value at the top of the stack. * * @return an <code>short</code> value */ public short peek() { return _list.get( _list.size() - 1 ); }
/** * Returns the value at the top of the stack. * * @return an <code>short</code> value */ @Override public short peek() { return _list.get( _list.size() - 1 ); }
/** {@inheritDoc} */ public short removeAt( int offset ) { short old = get( offset ); remove( offset, 1 ); return old; }
/** {@inheritDoc} */ public short removeAt( int offset ) { short old = get( offset ); remove( offset, 1 ); return old; }
/** {@inheritDoc} */ @Override public short removeAt( int offset ) { short old = get( offset ); remove( offset, 1 ); return old; }
/** * Returns the value at the top of the stack. * * @return an <code>short</code> value */ public short peek() { return _list.get( _list.size() - 1 ); }
/** * Returns a String representation of the list, top to bottom. * * @return a <code>String</code> value */ public String toString() { final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); buf.append( ", " ); } if ( size() > 0 ) { buf.append( _list.get( 0 ) ); } buf.append( "}" ); return buf.toString(); }
/** * Returns a String representation of the list, top to bottom. * * @return a <code>String</code> value */ public String toString() { final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); buf.append( ", " ); } if ( size() > 0 ) { buf.append( _list.get( 0 ) ); } buf.append( "}" ); return buf.toString(); }
/** * Returns a String representation of the list, top to bottom. * * @return a <code>String</code> value */ @Override public String toString() { final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); buf.append( ", " ); } if ( size() > 0 ) { buf.append( _list.get( 0 ) ); } buf.append( "}" ); return buf.toString(); }
/** * Returns a String representation of the list, top to bottom. * * @return a <code>String</code> value */ public String toString() { final StringBuilder buf = new StringBuilder( "{" ); for ( int i = _list.size() - 1; i > 0; i-- ) { buf.append( _list.get( i ) ); buf.append( ", " ); } if ( size() > 0 ) { buf.append( _list.get( 0 ) ); } buf.append( "}" ); return buf.toString(); }