public class Event extends Object
Constructor and Description |
---|
Event(EventType type,
int sourceAddress)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static String |
formatAddress(int address)
Util method to create a string representation of a 32 bit integer representing
an IPv4 address.
|
int |
hashCode() |
int |
sourceAddress()
Gets the event's source address.
|
String |
toString() |
EventType |
type()
Gets the event's type.
|
public Event(EventType type, int sourceAddress)
type
- The event type.sourceAddress
- The originating address (think 32 bit IPv4 address).public EventType type()
public int sourceAddress()
public static String formatAddress(int address)
address
- The address, MSB first.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.