public class HistoryEvent extends DomainObject implements Comparable<HistoryEvent>
Modifier and Type | Field and Description |
---|---|
protected HistoryNode |
afterNode |
protected HistoryNode |
beforeNode |
protected Date |
date |
protected EventConstant |
eventClass |
protected Long |
eventId |
protected Long |
groupId |
protected String |
note |
id
Constructor and Description |
---|
HistoryEvent()
Nothing special.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HistoryEvent historyEvent)
Makes instances of this class comparable.
|
boolean |
equals(Object o)
Checks if two
HistoryEvent objects are equal. |
HistoryNode |
getAfterNode() |
HistoryNode |
getBeforeNode() |
Date |
getDate() |
EventConstant |
getEventClass() |
Long |
getEventId() |
Long |
getGroupId() |
String |
getNote() |
HistoryNode |
getRelative(HistoryNode node)
Returns the relative node of the given node.
|
int |
hashCode()
Calculates a unique hash code.
|
boolean |
isSuccessor(HistoryNode node)
Returns
true if the given node is the successor of this node. |
void |
setAfterNode(HistoryNode afterNode) |
void |
setBeforeNode(HistoryNode beforeNode) |
void |
setDate(Date date) |
void |
setEventClass(EventConstant eventClass) |
void |
setEventId(Long eventId) |
void |
setGroupId(Long groupId) |
void |
setNote(String note) |
getId
protected Long groupId
protected Long eventId
protected HistoryNode beforeNode
protected HistoryNode afterNode
protected EventConstant eventClass
protected Date date
protected String note
public int compareTo(HistoryEvent historyEvent)
compareTo
in interface Comparable<HistoryEvent>
historyEvent
- The object to be compared to this instance.public boolean equals(Object o)
HistoryEvent
objects are equal.equals
in class DomainObject
o
- The other HistoryEvent
to compare with this one.true
, if the two objects are equal.public int hashCode()
hashCode
in class DomainObject
public boolean isSuccessor(HistoryNode node)
true
if the given node is the successor of this node.node
- The node to be compared to this node's relatives.true
if the given node is the successor of this node.public HistoryNode getRelative(HistoryNode node)
node
- The node of which the relative is demanded.null
if no relative exists.NullPointerException
- if the given node is null
.public Long getGroupId()
public void setGroupId(Long groupId)
public Long getEventId()
public void setEventId(Long eventId)
public HistoryNode getBeforeNode()
public void setBeforeNode(HistoryNode beforeNode)
public HistoryNode getAfterNode()
public void setAfterNode(HistoryNode afterNode)
public EventConstant getEventClass()
public void setEventClass(EventConstant eventClass)
public Date getDate()
public void setDate(Date date)
public String getNote()
public void setNote(String note)
Copyright © 2014 EMBL-EBI. All rights reserved.