com.sun.jini.mercury

Class EventID

    • Field Detail

      • source

        private transient Object source
        The event source
      • id

        private long id
        The event ID.
    • Constructor Detail

      • EventID

        public EventID(Object source,
               long id)
        Simple constructor that assigns the provided arguments to the appropriate internal fields
      • EventID

        public EventID(RemoteEvent evt)
        Convenience constructor. Initializes the object with attributes extracted from the given RemoteEvent argument.
        Throws:
        IllegalArgumentException - if a null argument is provided
    • Method Detail

      • init

        private void init(Object source,
                long id)
        Convenience initialization method. Note: private scoping prevents a subclass from inadvertently overriding this method.
        Throws:
        IllegalArgumentException - if a null source argument is provided.
      • equals

        public boolean equals(Object o)
        Return true if the given object is equal to this object and false otherwise. Two EventID objects are considered equal if their source and ID attributes are equal.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object

Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.