public class CrListElement
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
CrListElement(CrListElement pred,
CrListElement succ,
int num,
int value,
int i)
Constructor that constructs a CrListElement and a CrNode
to which the list element is pointing.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(int num,
int value)
Compares two CrListElements
|
int[] |
getContent()
Gets the item that is stored in a CrListElement.
|
int |
getHeight()
Gets the minimum height of all nodes in a CrTree
that store the same item than the ListElement
|
CrListElement |
getPred()
Gets the predecessor
|
CrNode |
getSiblingNode()
Gets the node to wich the CrListElement is pointing
|
CrListElement |
getSucc()
Gets the successor
|
void |
setContent(int[] insert)
Sets the item that is stored in a CrListElement.
|
void |
setHeight(int i)
Sets the minimum height of all nodes in a CrTree
that store the same item than the ListElement
|
void |
setPred(CrListElement input)
Sets the predecessor
|
void |
setSiblingNode(CrNode sibling)
Sets the node to wich the CrListElement is pointing
|
void |
setSucc(CrListElement input)
Sets the sucessor.
|
java.lang.String |
toString()
Methods that returns a string description for a CrListElement
|
public CrListElement(CrListElement pred, CrListElement succ, int num, int value, int i)
pred - the predecessor in the listsucc - the successor in the listnum - the attribute numbervalue - the attribute valuei - the minimum heightpublic void setPred(CrListElement input)
input - a CrListElementpublic void setSucc(CrListElement input)
input - a CrListElementpublic void setHeight(int i)
i - the minimum heightpublic int getHeight()
public CrListElement getPred()
public CrListElement getSucc()
public CrNode getSiblingNode()
public void setSiblingNode(CrNode sibling)
sibling - a CrNodepublic int[] getContent()
public void setContent(int[] insert)
insert - an integer array containing the attribute number and the attribute valuepublic boolean equals(int num,
int value)
num - the attribute numbervalue - the attribute valuepublic java.lang.String toString()
toString in class java.lang.Object