Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class ValueList

ValueList
Subclasses:
VicinityList

public class ValueList
Implements a list with UNIQUE entries. Allows to compare the list against other lists. Returns either the old entries, or the new entries and implicitly updates the list (this) with the new elements and deletes the old elements from the list.


Constructor Summary
ValueList()
           
ValueList(int rows)
           
 
Method Summary
<>List insertNewEntries(java.lang.String newList)
          Checks a string containing multiple lines against this object's list.
boolean isMember(java.lang.String entry, <>List list)
          Checks if a list contains a given entry.
<>List removeObsoleteEntries(java.lang.String currentString)
          Checks a string containing multiple lines against this object's list.
<>List toList(java.lang.String string)
          Converts a string containing multiple lines into a list.
java.lang.String toString(<>List list)
          Converts a list into a string containing multiple lines.
 

Constructor Detail

ValueList

public ValueList()

ValueList

public ValueList(int rows)
Parameters:
rows - Number of rows of the list.
Method Detail

toList

protected <>List toList(java.lang.String string)
Converts a string containing multiple lines into a list.
Parameters:
string - The string.
Returns:
The list.

toString

protected java.lang.String toString(<>List list)
Converts a list into a string containing multiple lines.
Parameters:
list - The list.
Returns:
The string.

isMember

protected boolean isMember(java.lang.String entry,
                           <>List list)
Checks if a list contains a given entry.
Parameters:
entry - The entry.
list - The list.
Returns:
The result.

removeObsoleteEntries

public <>List removeObsoleteEntries(java.lang.String currentString)
Checks a string containing multiple lines against this object's list. Removes all list entries not contained in the string.
Parameters:
currentString - The string for the comparison.
Returns:
The list with the obsolete entries which have been removed from the object's list.

insertNewEntries

public <>List insertNewEntries(java.lang.String newList)
Checks a string containing multiple lines against this object's list. Inserts all entries contained in the string which are not already contained in the object's list.
Parameters:
newList - The string for the comparison.
Returns:
The list with the new entries which have been added to the object's list.

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD