|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.uio.edd.utils.datautils.ExtendableObjectList
no.uio.edd.utils.datautils.ExtendableStringList
public class ExtendableStringList
Constructor Summary | |
---|---|
ExtendableStringList()
Creates a new list object. |
|
ExtendableStringList(java.lang.String firstElem)
Creates a new list object. |
|
ExtendableStringList(java.lang.String[] newList)
Creates a new list object. |
Method Summary | |
---|---|
int |
addElem(java.lang.String newElem)
Add a new element to the list. |
int |
addElemUnlessAlreadyThere(java.lang.String newElem)
Add a new element to the list unless it is already there. |
void |
addStringArray(java.lang.String[] newStringArr)
|
java.lang.String |
getElem(int num)
Return one element from the list. |
java.lang.String[] |
getList()
Get the full string list held by this object. |
java.lang.String[] |
getListNoNulls()
Get the full object list held by this object, from which all null elements are removed. |
java.lang.String[] |
removeDuplicates()
If there are duplicates in the list, returns a list where all but the first occurrence are set to null. |
java.lang.String[] |
removeDuplicatesAndNulls()
If there are duplicates in the list, returns a list where all but the first occurrence are removed. |
Methods inherited from class no.uio.edd.utils.datautils.ExtendableObjectList |
---|
addElem, addElemUnlessAlreadyThere, addObjectArray, emptyList, findObject, getLength, getLengthNoNulls, getNextFree, nullFirstObjectInList, nullObjectsInList, setElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendableStringList(java.lang.String firstElem)
firstElem
- The first element of the list.public ExtendableStringList()
public ExtendableStringList(java.lang.String[] newList)
newList
- An array of objects to be set as mine.Method Detail |
---|
public java.lang.String[] getList()
getList
in class ExtendableObjectList
public java.lang.String[] getListNoNulls()
getListNoNulls
in class ExtendableObjectList
public int addElem(java.lang.String newElem)
newElem
- The new element.
public int addElemUnlessAlreadyThere(java.lang.String newElem)
newElem
- The new element.
public void addStringArray(java.lang.String[] newStringArr)
public java.lang.String getElem(int num)
getElem
in class ExtendableObjectList
num
- The index number of the element to be returned.
public java.lang.String[] removeDuplicates()
ExtendableObjectList
removeDuplicates
in class ExtendableObjectList
public java.lang.String[] removeDuplicatesAndNulls()
ExtendableObjectList
removeDuplicatesAndNulls
in class ExtendableObjectList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |