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 intcompareTo(EventKey other)An EventKey is considered equal rank to another if either the names or ids are the same.booleanequals(Object o)intgetId()StringgetName()inthashCode()voidsetId(int id)voidsetName(String name)voidtoStream(DataOutput out)StringtoString()
-
-
-
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:
toStreamin 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:
compareToin interfaceComparable<EventKey>- Parameters:
other-- Returns:
-
-