edu.iu.cnets.klatsch.model.basic
Class BasicNode

java.lang.Object
  extended by edu.iu.cnets.klatsch.model.Node
      extended by 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
           
 
Fields inherited from class edu.iu.cnets.klatsch.model.Node
TYPE_ACTOR, TYPE_MEME
 
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
 

Field Detail

id

int id

type

char type
Constructor Detail

BasicNode

public BasicNode(char type,
                 int id)
Method Detail

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