public class LeadershipEvent extends AbstractEvent<LeadershipEvent.Type,Leadership>
Modifier and Type | Class and Description |
---|---|
static class |
LeadershipEvent.Type
Type of leadership events.
|
Constructor and Description |
---|
LeadershipEvent(LeadershipEvent.Type type,
Leadership leadership)
Creates an event of a given type and for the specified instance and the
current time.
|
LeadershipEvent(LeadershipEvent.Type type,
Leadership leadership,
long time)
Creates an event of a given type and for the specified subject and time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
subject, time, type
public LeadershipEvent(LeadershipEvent.Type type, Leadership leadership)
type
- leadership event typeleadership
- event subjectpublic LeadershipEvent(LeadershipEvent.Type type, Leadership leadership, long time)
type
- leadership event typeleadership
- event subjecttime
- occurrence timepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class AbstractEvent<LeadershipEvent.Type,Leadership>