@Beta public class UpgradeEvent extends AbstractEvent<UpgradeEvent.Type,Upgrade>
Modifier and Type | Class and Description |
---|---|
static class |
UpgradeEvent.Type
Type of upgrade-related events.
|
Constructor and Description |
---|
UpgradeEvent(UpgradeEvent.Type type,
Upgrade state)
Creates an event of a given type and for the specified state and the
current time.
|
UpgradeEvent(UpgradeEvent.Type type,
Upgrade state,
long time)
Creates an event of a given type and for the specified state and time.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
subject, time, type
public UpgradeEvent(UpgradeEvent.Type type, Upgrade state)
type
- upgrade event typestate
- upgrade statepublic UpgradeEvent(UpgradeEvent.Type type, Upgrade state, long time)
type
- upgrade event typestate
- upgrade statetime
- 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<UpgradeEvent.Type,Upgrade>