unbbayes.util
Class NodeList

java.lang.Object
  extended by unbbayes.util.NodeList
All Implemented Interfaces:
Serializable

Deprecated. DON'T USE MORE THIS!!!!!!!! USE A ARRAY LIST....

@Deprecated
public final class NodeList
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static int DEFAULT_SIZE
          Deprecated.  
 
Constructor Summary
NodeList(String test1, String test2)
          Deprecated.  
 
Method Summary
 void add(int index, Node element)
          Deprecated. Inserts the specified element at the specified position in this list.
 boolean add(Node newElement)
          Deprecated. Appends the specified element to the end of this list.
 boolean addAll(NodeList c)
          Deprecated. Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator.
 void clear()
          Deprecated. Removes all of the elements from this list.
 boolean contains(Node elem)
          Deprecated. Returns true if this list contains the specified element.
static boolean containsAll(ArrayList<Node> originalList, ArrayList<Node> testNodeList)
          Deprecated.  
 boolean containsAll(NodeList c)
          Deprecated. 
 void ensureCapacity(int minCapacity)
          Deprecated. Increases the capacity of this NodeList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.
 Node get(int index)
          Deprecated. Returns the element at the specified position in this list.
 Node[] getData()
          Deprecated. 
static Node[] getData(ArrayList<Node> array)
          Deprecated.  
 int indexOf(Node elem)
          Deprecated. Searches for the first occurence of the given argument, testing for equality using the equals method.
 Node remove(int index)
          Deprecated. Removes the element at the specified position in this list.
 boolean remove(Object o)
          Deprecated. Removes a single instance of the specified element from this collection, if it is presen.
static boolean removeAll(ArrayList<Node> originalList, ArrayList<Node> removeNodesList)
          Deprecated. Remove from originalList all nodes that are present in removeNodesList
 boolean removeAll(NodeList c)
          Deprecated. 
static boolean retainAll(ArrayList<Node> originalList, ArrayList<Node> testNodeList)
          Deprecated. Remove from the originalList all nodes that don't exists in testNodeList
 boolean retainAll(NodeList c)
          Deprecated. 
 Node set(int index, Node element)
          Deprecated. Replaces the element at the specified position in this list with the specified element.
static void setData(ArrayList<Node> list, Node[] data)
          Deprecated. Sets the data of list with the elements of data.
 void setData(Node[] data)
          Deprecated. 
 void setSize(int size)
          Deprecated. Sets the size.
 int size()
          Deprecated. Returns the number of elements in this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

public static final int DEFAULT_SIZE
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

NodeList

public NodeList(String test1,
                String test2)
Deprecated. 
Method Detail

ensureCapacity

public final void ensureCapacity(int minCapacity)
Deprecated. 
Increases the capacity of this NodeList instance, if necessary, to ensure that it can hold at least the number of elements specified by the minimum capacity argument.

Parameters:
minCapacity - the desired minimum capacity.

size

public final int size()
Deprecated. 
Returns the number of elements in this list.

Returns:
the number of elements in this list.

get

public final Node get(int index)
Deprecated. 
Returns the element at the specified position in this list.

Parameters:
index - index of element to return.
Returns:
the element at the specified position in this list.

set

public final Node set(int index,
                      Node element)
Deprecated. 
Replaces the element at the specified position in this list with the specified element.

Parameters:
index - index of element to replace.
element - element to be stored at the specified position.
Returns:
the element previously at the specified position.

add

public final boolean add(Node newElement)
Deprecated. 
Appends the specified element to the end of this list.

Parameters:
o - element to be appended to this list.
Returns:
true

add

public final void add(int index,
                      Node element)
Deprecated. 
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
IndexOutOfBoundsException - if index is out of range (index < 0 || index > size()).

addAll

public final boolean addAll(NodeList c)
Deprecated. 
Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this list, and this list is nonempty.)

Parameters:
c - the elements to be inserted into this list.
Throws:
IndexOutOfBoundsException - if index out of range (index < 0 || index > size()).

clear

public final void clear()
Deprecated. 
Removes all of the elements from this list. The list will be empty after this call returns.


removeAll

@Deprecated
public final boolean removeAll(NodeList c)
Deprecated. 


removeAll

public static final boolean removeAll(ArrayList<Node> originalList,
                                      ArrayList<Node> removeNodesList)
Deprecated. 
Remove from originalList all nodes that are present in removeNodesList

Returns:
true if one or more nodes was removed

containsAll

@Deprecated
public final boolean containsAll(NodeList c)
Deprecated. 


containsAll

public static final boolean containsAll(ArrayList<Node> originalList,
                                        ArrayList<Node> testNodeList)
Deprecated. 
Returns:
true if the original list contains all the nodes in testNodeList

remove

public final Node remove(int index)
Deprecated. 
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices).

Parameters:
index - the index of the element to removed.
Returns:
the element that was removed from the list.

remove

public final boolean remove(Object o)
Deprecated. 
Removes a single instance of the specified element from this collection, if it is presen. Returns true if the collection contained the specified element (or equivalently, if the collection changed as a result of the call).

Parameters:
o - element to be removed from this collection, if present.
Returns:
true if the collection contained the specified element.

retainAll

@Deprecated
public final boolean retainAll(NodeList c)
Deprecated. 


retainAll

public static final boolean retainAll(ArrayList<Node> originalList,
                                      ArrayList<Node> testNodeList)
Deprecated. 
Remove from the originalList all nodes that don't exists in testNodeList

Parameters:
originalList -
testNodeList -
Returns:

indexOf

public final int indexOf(Node elem)
Deprecated. 
Searches for the first occurence of the given argument, testing for equality using the equals method.

Parameters:
elem - an object.
Returns:
the index of the first occurrence of the argument in this list; returns -1 if the object is not found.
See Also:
Object.equals(Object)

contains

public final boolean contains(Node elem)
Deprecated. 
Returns true if this list contains the specified element.

Parameters:
elem - element whose presence in this List is to be tested.

setData

@Deprecated
public final void setData(Node[] data)
Deprecated. 

Sets the data.

Parameters:
data - The data to set

setData

public static final void setData(ArrayList<Node> list,
                                 Node[] data)
Deprecated. 
Sets the data of list with the elements of data.

Parameters:
data - The data to set

setSize

public final void setSize(int size)
Deprecated. 
Sets the size.

Parameters:
size - The size to set

getData

@Deprecated
public final Node[] getData()
Deprecated. 

Gets the data.

Returns:
Returns a Node[]

getData

public static final Node[] getData(ArrayList<Node> array)
Deprecated. 


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.