org.apache.turbine.util
Class StringStackBuffer

java.lang.Object
  extended byorg.apache.turbine.util.StringStackBuffer
All Implemented Interfaces:
java.io.Serializable

Deprecated. This class will be removed after the 2.3 release. It is not part of the Web Framework scope. If you need this class, please lobby for inclusion in the commons-collections component repository.

public class StringStackBuffer
extends java.lang.Object
implements java.io.Serializable

This class implements a Stack for String objects.

Version:
$Id: StringStackBuffer.java 264148 2005-08-29 14:21:04Z henning $
Author:
John D. McNally
See Also:
Serialized Form

Constructor Summary
StringStackBuffer()
          Deprecated. Constructor.
 
Method Summary
 StringStackBuffer add(java.lang.String s)
          Deprecated. Adds the String to the collection if it does not already contain it.
 StringStackBuffer addAll(StringStackBuffer s)
          Deprecated. Adds all Strings in the given StringStackBuffer to the collection (skipping those it already contains)
 void clear()
          Deprecated. Clears the Stack.
 boolean contains(java.lang.String s)
          Deprecated. Does the Stack contain this String?
 boolean empty()
          Deprecated. Is the Stack empty?
 boolean equals(java.lang.Object ssbuf)
          Deprecated. Compares two StringStackBuffers.
 java.lang.String get(int i)
          Deprecated. Get a String off the Stack at a certain position.
 int size()
          Deprecated. What is the size of the Stack?
 java.lang.String toString()
          Deprecated. Converts the stack to a single String with no separator.
 java.lang.String toString(java.lang.String separator)
          Deprecated. Converts the stack to a single String.
 java.lang.String[] toStringArray()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringStackBuffer

public StringStackBuffer()
Deprecated. 
Constructor.

Method Detail

add

public StringStackBuffer add(java.lang.String s)
Deprecated. 
Adds the String to the collection if it does not already contain it.

Parameters:
s - A String.
Returns:
A StringStackBuffer.

addAll

public StringStackBuffer addAll(StringStackBuffer s)
Deprecated. 
Adds all Strings in the given StringStackBuffer to the collection (skipping those it already contains)

Parameters:
s - A StringStackBuffer.
Returns:
A StringStackBuffer.

clear

public void clear()
Deprecated. 
Clears the Stack.


contains

public boolean contains(java.lang.String s)
Deprecated. 
Does the Stack contain this String?

Parameters:
s - A String.
Returns:
True if the Stack contains this String.

empty

public boolean empty()
Deprecated. 
Is the Stack empty?

Returns:
True if the Stack is empty.

get

public java.lang.String get(int i)
Deprecated. 
Get a String off the Stack at a certain position.

Parameters:
i - An int with the position.
Returns:
A String.

size

public int size()
Deprecated. 
What is the size of the Stack?

Returns:
An int, the size of the Stack.

toString

public java.lang.String toString()
Deprecated. 
Converts the stack to a single String with no separator.

Returns:
The stack elements as a single block of text.

toString

public java.lang.String toString(java.lang.String separator)
Deprecated. 
Converts the stack to a single String.

Parameters:
separator - The text to use as glue between elements in the stack.
Returns:
The stack elements--glued together by separator--as a single block of text.

equals

public boolean equals(java.lang.Object ssbuf)
Deprecated. 
Compares two StringStackBuffers. Considered equal if the toString() methods are equal.


toStringArray

public java.lang.String[] toStringArray()
Deprecated. 


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.