public class Incident extends Object implements Serializable, Comparable
Modifier and Type | Field and Description |
---|---|
protected Date |
time
Timestamp of this incident.
|
Constructor and Description |
---|
Incident()
Creates a new
Incident instance, timestamping it. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Two incidents compare with each other mostly by their timestamps
|
boolean |
equals(Object obj)
Two incidents are equal if they're the same object, or if they both have the
equal timestamps and either both their IDs are null or are equal.
|
String |
getActivityID()
Get the ID of the activity to which the incident belongs.
|
Date |
getTime()
Get the timestamp of this incident.
|
int |
hashCode() |
String |
toString() |
protected Date time
public Incident()
Incident
instance, timestamping it.public String getActivityID()
String
value.public boolean equals(Object obj)
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- an Object
value.Copyright © 1999–2017 Apache OODT. All rights reserved.