/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * Return <code>true</code> if this stack is currently empty. * <p> * This method exists for compatibility with <code>java.util.Stack</code>. * New users of this class should use <code>isEmpty</code> instead. * * @return true if the stack is currently empty */ public boolean empty() { return isEmpty(); }
/** * <p>Is the stack with the given name empty?</p> * <p><strong>Note:</strong> a stack is considered empty * if no objects have been pushed onto it yet.</p> * @param stackName the name of the stack whose emptiness * should be evaluated * @return true if the given stack if empty * * @since 1.6 */ public boolean isEmpty(String stackName) { boolean result = true; ArrayStack<Object> namedStack = stacksByName.get(stackName); if (namedStack != null ) { result = namedStack.isEmpty(); } return result; }
/** * <p>Is the stack with the given name empty?</p> * <p><strong>Note:</strong> a stack is considered empty * if no objects have been pushed onto it yet.</p> * @param stackName the name of the stack whose emptiness * should be evaluated * @return true if the given stack if empty * * @since 1.6 */ public boolean isEmpty(String stackName) { boolean result = true; ArrayStack<Object> namedStack = stacksByName.get(stackName); if (namedStack != null ) { result = namedStack.isEmpty(); } return result; }
/** * <p>Is the stack with the given name empty?</p> * <p><strong>Note:</strong> a stack is considered empty * if no objects have been pushed onto it yet.</p> * @param stackName the name of the stack whose emptiness * should be evaluated * @return true if the given stack if empty * * @since 1.6 */ public boolean isEmpty(String stackName) { boolean result = true; ArrayStack<Object> namedStack = stacksByName.get(stackName); if (namedStack != null ) { result = namedStack.isEmpty(); } return result; }
/** * <p>Is the stack with the given name empty?</p> * <p><strong>Note:</strong> a stack is considered empty * if no objects have been pushed onto it yet.</p> * @param stackName the name of the stack whose emptiness * should be evaluated * @return true if the given stack if empty * * @since 1.6 */ public boolean isEmpty(String stackName) { boolean result = true; ArrayStack<Object> namedStack = stacksByName.get(stackName); if (namedStack != null ) { result = namedStack.isEmpty(); } return result; }
/** * <p>Is the stack with the given name empty?</p> * <p><strong>Note:</strong> a stack is considered empty * if no objects have been pushed onto it yet.</p> * @param stackName the name of the stack whose emptiness * should be evaluated * @return true if the given stack if empty * * @since 1.6 */ public boolean isEmpty(String stackName) { boolean result = true; ArrayStack namedStack = (ArrayStack) stacksByName.get(stackName); if (namedStack != null ) { result = namedStack.isEmpty(); } return result; }