public class EventKey extends Object implements com.opencloud.util.FastSerializable, Serializable, Comparable<EventKey>
Constructor and Description |
---|
EventKey(DataInput in) |
EventKey(String name)
Constuctor for parsing mini-bundle yaml files.
|
EventKey(String name,
int id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EventKey other)
An EventKey is considered equal rank to another if either the names or ids are the same.
|
boolean |
equals(Object o) |
int |
getId() |
String |
getName() |
int |
hashCode() |
void |
setId(int id) |
void |
setName(String name) |
void |
toStream(DataOutput out) |
String |
toString() |
public EventKey(String name)
Constuctor for parsing mini-bundle yaml files. Takes a name, the ID will be provided later.
name
- The name of the event.public EventKey(String name, int id)
public EventKey(DataInput in) throws IOException
IOException
public void toStream(DataOutput out) throws IOException
toStream
in interface com.opencloud.util.FastSerializable
IOException
public String getName()
public void setName(String name)
public int getId()
public void setId(int id)
public int compareTo(EventKey other)
An EventKey is considered equal rank to another if either the names or ids are the same. Names are not used to distinguish ordering.
compareTo
in interface Comparable<EventKey>
other
-