Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.bugbase.model
Class BugReportStatus  view BugReportStatus download BugReportStatus.java

java.lang.Object
  extended byopenfuture.bugbase.model.BugReportStatus
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class BugReportStatus
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

bug report status Created: Tue May 30 21:06:41 2000

Version:
$Revision: 1.3 $

Field Summary
private  int status
           
static int STATUS_FIXED
           
static int STATUS_REJECTED
           
static int STATUS_REPORTED
           
static int STATUS_STARTED
           
 
Constructor Summary
BugReportStatus()
          Create a new bug report status object.
BugReportStatus(int status)
          Create a new bug report status object.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares to another status.
 int getStatus()
          Get the value of status.
 void setStatus(int v)
          Set the value of status.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_REPORTED

public static final int STATUS_REPORTED
See Also:
Constant Field Values

STATUS_STARTED

public static final int STATUS_STARTED
See Also:
Constant Field Values

STATUS_FIXED

public static final int STATUS_FIXED
See Also:
Constant Field Values

STATUS_REJECTED

public static final int STATUS_REJECTED
See Also:
Constant Field Values

status

private int status
Constructor Detail

BugReportStatus

public BugReportStatus(int status)
Create a new bug report status object.


BugReportStatus

public BugReportStatus()
Create a new bug report status object.

Method Detail

getStatus

public int getStatus()
Get the value of status.


setStatus

public void setStatus(int v)
Set the value of status.


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


compareTo

public int compareTo(java.lang.Object o)
Compares to another status.
reported < started < fixed < rejected.

Specified by:
compareTo in interface java.lang.Comparable