com.nitido.util
Class StringContainer
java.lang.Object
com.nitido.util.StringContainer
- All Implemented Interfaces:
- StringList, java.io.Serializable
public class StringContainer
- extends java.lang.Object
- implements StringList
The StringContainer class is used to store a list of String objects.
- See Also:
- Serialized Form
Field Summary |
protected java.util.Vector |
list
|
Method Summary |
void |
add(java.lang.String string)
|
void |
addUnique(java.lang.String string)
|
void |
clear()
|
boolean |
contains(java.lang.String string)
|
boolean |
containsIgnoreCase(java.lang.String string)
|
java.lang.String |
elementAt(int index)
|
java.util.Enumeration |
elements()
|
void |
remove(java.lang.String string)
|
void |
removeAll(java.lang.String string)
|
java.lang.String |
set(int index,
java.lang.String newEntry)
Replaces the element at the specified position in this StringList with
the specified element. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
list
protected java.util.Vector list
StringContainer
public StringContainer()
contains
public boolean contains(java.lang.String string)
- Specified by:
contains
in interface StringList
containsIgnoreCase
public boolean containsIgnoreCase(java.lang.String string)
- Specified by:
containsIgnoreCase
in interface StringList
elements
public java.util.Enumeration elements()
- Specified by:
elements
in interface StringList
elementAt
public java.lang.String elementAt(int index)
- Specified by:
elementAt
in interface StringList
add
public void add(java.lang.String string)
addUnique
public void addUnique(java.lang.String string)
remove
public void remove(java.lang.String string)
removeAll
public void removeAll(java.lang.String string)
clear
public void clear()
set
public java.lang.String set(int index,
java.lang.String newEntry)
- Replaces the element at the specified position in this StringList with
the specified element.
- Parameters:
index
- Index of element to replace.newEntry
- String to be stored at the specified position.
- Returns:
- The string previously at the specified position.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
These JavaDoc pages are generated for release/nim_2_5-2.5.44 Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.