public class InterfaceEvent extends AbstractEvent<InterfaceEvent.Type,Interface>
Modifier and Type | Class and Description |
---|---|
static class |
InterfaceEvent.Type |
Constructor and Description |
---|
InterfaceEvent(InterfaceEvent.Type type,
Interface subject)
Creates an interface event with type and subject.
|
InterfaceEvent(InterfaceEvent.Type type,
Interface subject,
Interface prevSubject)
Creates an interface event with type, subject and previous subject.
|
InterfaceEvent(InterfaceEvent.Type type,
Interface subject,
Interface prevSubject,
long time)
Creates an interface event with type, subject, previous subject and time.
|
InterfaceEvent(InterfaceEvent.Type type,
Interface subject,
long time)
Creates an interface event with type, subject and time of event.
|
Modifier and Type | Method and Description |
---|---|
Interface |
prevSubject()
Returns the previous interface subject.
|
java.lang.String |
toString() |
subject, time, type
public InterfaceEvent(InterfaceEvent.Type type, Interface subject)
type
- event typesubject
- subject interfacepublic InterfaceEvent(InterfaceEvent.Type type, Interface subject, long time)
type
- event typesubject
- subject interfacetime
- time of eventpublic InterfaceEvent(InterfaceEvent.Type type, Interface subject, Interface prevSubject)
type
- event typesubject
- subject interfaceprevSubject
- previous interface subjectpublic InterfaceEvent(InterfaceEvent.Type type, Interface subject, Interface prevSubject, long time)
type
- event typesubject
- subject interfaceprevSubject
- previous interface subjecttime
- time of eventpublic Interface prevSubject()
public java.lang.String toString()
toString
in class AbstractEvent<InterfaceEvent.Type,Interface>