/** * @see java.util.Stack#push */ public E push(E item) { add(item); return item; }
/** * @see java.util.Stack#search */ public int search(Object o) { int i = lastIndexOf(o); if (i >= 0) return size() - i; return -1; } }
/** * @see java.util.Stack#empty * * @deprecated This exists only for source compatibility * with <code>java.util.Stack</code>, please use <code>isEmpty</code> * instead. */ @Deprecated public boolean empty() { return isEmpty(); }