edu.iu.cnets.klatsch.model.basic
Class BasicNode
java.lang.Object
edu.iu.cnets.klatsch.model.Node
edu.iu.cnets.klatsch.model.basic.BasicNode
- All Implemented Interfaces:
- java.lang.Comparable<Node>
public class BasicNode
- extends Node
This is a simple implementation of Node
for feed types that don't need any advanced features.
Field Summary |
(package private) int |
id
|
(package private) char |
type
|
Constructor Summary |
BasicNode(char type,
int id)
|
Method Summary |
int |
compareTo(Node other)
|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
int |
id()
Returns the ID of this node. |
char |
type()
Returns the type of this node. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
id
int id
type
char type
BasicNode
public BasicNode(char type,
int id)
id
public int id()
- Description copied from class:
Node
- Returns the ID of this node.
- Specified by:
id
in class Node
type
public char type()
- Description copied from class:
Node
- Returns the type of this node.
- Specified by:
type
in class Node
compareTo
public int compareTo(Node other)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object