Class EventKey

    • 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)
    • Method Detail

      • toStream

        public void toStream​(DataOutput out)
                      throws IOException
        Specified by:
        toStream in interface com.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 interface Comparable<EventKey>
        Parameters:
        other -
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object