Class DiscoveryProtocolVersion

java.lang.Object
com.sun.jini.discovery.DiscoveryProtocolVersion
All Implemented Interfaces:
Serializable, InvocationConstraint

public final class DiscoveryProtocolVersion extends Object implements InvocationConstraint, Serializable
Represents a constraint on the version of the discovery protocol used to contact lookup services. Lookup services and discovery clients can use this constraint to control what version(s) of the multicast request, multicast announcement and unicast discovery protocols are used to exchange data with each other.
Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
  • Field Details

  • Method Details

    • getInstance

      public static DiscoveryProtocolVersion getInstance(int version)
      Returns a DiscoveryProtocolVersion constraint for the given version number.
      Returns:
      a constraint for the given version number
    • getVersion

      public int getVersion()
      Returns the protocol version number.
      Returns:
      the protocol version number
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object