org.moyoman.client.reference.debug
Class DataListEntry

java.lang.Object
  |
  +--org.moyoman.client.reference.debug.DataListEntry
All Implemented Interfaces:
Comparable

public class DataListEntry
extends Object
implements Comparable

Provides a data list entry item.

Since:
v0.01
Author:
Jeffrey M. Thompson

Field Summary
private  String _color
          Color description (optional).
private  String _file
          File label.
private  int _index
          Data index.
private  int _rank
          Rank index.
 
Constructor Summary
DataListEntry(int index, int file, int rank)
          Construct this object using the given parameters.
DataListEntry(int index, int file, int rank, Color color)
          Construct this object using the given parameters.
 
Method Summary
protected  int compare(int i1, int i2)
          Compare the two integers.
 int compareTo(Object obj)
          Compare this to the given object.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_color

private String _color
Color description (optional).


_file

private String _file
File label.


_index

private int _index
Data index.


_rank

private int _rank
Rank index.

Constructor Detail

DataListEntry

public DataListEntry(int index,
                     int file,
                     int rank)
Construct this object using the given parameters.

Parameters:
index - Data index.
file - File label.
rank - Rank index.
Since:
v0.01

DataListEntry

public DataListEntry(int index,
                     int file,
                     int rank,
                     Color color)
Construct this object using the given parameters.

Parameters:
index - Data index.
file - File label.
rank - Rank index.
color - Color description (optional).
Since:
v0.01
Method Detail

compareTo

public int compareTo(Object obj)
Compare this to the given object.

Specified by:
compareTo in interface Comparable
Throws:
ClassCastException - if the given object is not a DataListEnty.
Since:
v0.01

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.01

compare

protected int compare(int i1,
                      int i2)
Compare the two integers.

Since:
v0.01