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(Object obj) |
int |
hashCode() |
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 String toString()
toString
in class AbstractEvent<LeadershipEvent.Type,Leadership>