Class EventKey
- java.lang.Object
-
- com.opencloud.rhino.facilities.sas.bundle.EventKey
-
- All Implemented Interfaces:
com.opencloud.util.FastSerializable
,Serializable
,Comparable<EventKey>
public class EventKey extends Object implements com.opencloud.util.FastSerializable, Serializable, Comparable<EventKey>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
EventKey
public EventKey(String name)
Constuctor for parsing mini-bundle yaml files. Takes a name, the ID will be provided later.
- Parameters:
name
- The name of the event.
-
EventKey
public EventKey(String name, int id)
-
EventKey
public EventKey(DataInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
toStream
public void toStream(DataOutput out) throws IOException
- Specified by:
toStream
in interfacecom.opencloud.util.FastSerializable
- Throws:
IOException
-
getName
public String getName()
-
setName
public void setName(String name)
-
getId
public int getId()
-
setId
public void setId(int id)
-
compareTo
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.
- Specified by:
compareTo
in interfaceComparable<EventKey>
- Parameters:
other
-- Returns:
-
-