| Constructor | Description |
|---|---|
NodeImpl(byte id,
char type,
char color) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(Node other) |
|
Node |
copy() |
|
static Node |
createFieldNode(byte id,
char color) |
|
protected static Node |
createNode(byte id,
char type,
char color) |
|
static Node |
createRootNode(byte id,
char color) |
|
boolean |
equals(java.lang.Object obj) |
|
char |
getColor() |
|
byte |
getId() |
|
Metadata |
getMetadata() |
|
char |
getType() |
|
boolean |
isCompatible(Node other) |
|
boolean |
isSameColor(Node other) |
|
boolean |
isSameId(Node other) |
|
boolean |
isSameType(Metadata other) |
|
void |
setColor(char color) |
|
void |
setType(char type) |
|
java.lang.String |
toString() |
public static Node createFieldNode(byte id, char color)
protected static Node createNode(byte id, char type, char color)
public static Node createRootNode(byte id, char color)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Metadata getMetadata()
getMetadata in interface Nodepublic boolean isCompatible(Node other)
isCompatible in interface Nodepublic boolean isSameColor(Node other)
isSameColor in interface Nodepublic boolean isSameType(Metadata other)
public java.lang.String toString()
toString in class java.lang.Object