Package | Description |
---|---|
com.nwawsoft.util.datastructures |
Modifier and Type | Class and Description |
---|---|
class |
IntList
Works like
List but ignores objects except Integer objects and List objects that are not
purely made out of Integer s. |
class |
StringList
Works like List but ignores objects except Strings and List objects that are not purely made out of Strings.
|
Modifier and Type | Method and Description |
---|---|
List |
Graph.GraphNode.getNeighbors()
Returns a List object of all neighbors.
|
List |
Graph.getNeighbors(Graph.GraphNode graphNode)
Returns a new
List object containing all GraphNode objects that are neighbors of the specified
GraphNode object. |
List |
Graph.getNodes()
Returns a new
List object containing all GraphNode objects in the Graph . |
List |
Tree.getTrees()
Deprecated.
this is only for easier testing purposes but modifying the internal list via this call may
invalidate the integrity of the synchronization between treeList and subTreeCount.
|
Modifier and Type | Method and Description |
---|---|
void |
List.concat(List l)
Concatenates a specified list to the list.
|
void |
IntList.concat(List l) |
void |
StringList.concat(List l)
Concatenates the specified List to the end of the List making this call.
|
boolean |
List.sharesNoEntry(List l)
Checks whether the list has no entry that fits Object.equals() for any object in the specified list.
|
static boolean |
List.sharesNoEntry(List a,
List b)
Checks whether two lists have no entries that fit Object.equals().
|
Constructor and Description |
---|
BinaryTree(List treeList)
Deprecated.
Why would anyone want to create a
BinaryTree from a List ?! Just use any other
constructor. |
Tree(List treeList)
Creates a Tree object that stores a passed List of Tree objects.
|
Tree(List treeList,
boolean allowNull)
Creates a Tree object that stores a passed List of Tree objects.
|