|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.multicast.allocation.Scope
A multicast scope.
Objects of this class and all values returned by their methods are immutable. That is, their values cannot change after they are constructed.
| Constructor Summary | |
Scope(AddressRange addresses,
int ttl,
java.util.Enumeration names,
ScopeName defaultName)
Creates a Scope with the specified parameters. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this Scope with the specified
object for order. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
AddressRange |
getAddresses()
Gets the addresses included in the scope. |
ScopeName |
getDefaultName()
Gets a default ScopeName for the scope. |
java.util.Enumeration |
getNames()
Gets an Enumeration of the names for the scope. |
int |
getTTL()
Gets the ttl value to be used when transmitting on addresses in the scope. |
int |
hashCode()
Returns a hash code value for this object. |
java.lang.String |
toString()
Returns a string representation of this Scope. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Scope(AddressRange addresses,
int ttl,
java.util.Enumeration names,
ScopeName defaultName)
Scope with the specified parameters.addresses - the addresses included in the scopettl - the ttl value to be used when transmitting
on addresses in the scopenames - an Enumeration of
ScopeNamesdefaultName - the ScopeName to be used if no name
is available in the desired language
(null if none).
This name (if not null) must be in the
ScopeName Enumeration.| Method Detail |
public AddressRange getAddresses()
AddressRange representing the addresses
included in the scopepublic int getTTL()
public java.util.Enumeration getNames()
Enumeration of the names for the scope.Enumeration of ScopeNames
representing the names associated with the scopepublic ScopeName getDefaultName()
ScopeName for the scope.ScopeName for the scope
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
Scope with the specified
object for order. Returns a negative integer, zero, or
a positive integer as this object is less than, equal
to, or greater than the specified object.
If the other object is not a Scope,
a ClassCastException is thrown.
This method imposes a total ordering on Scopes.
Scopes are ordered first by address range, ttl,
scope name, and then default name.
o - the Object to compare againstjava.lang.ClassCastException - if the objects cannot be comparedpublic boolean equals(java.lang.Object obj)
Scopes are equal if and only if their address ranges,
ttls, scope names, and default names are all equal.equals in class java.lang.Objectobj - the object with which to comparetrue if this object is the same as the
reference object, false otherwise.public int hashCode()
Scopes are equal
if they are equal. However, it may be possible for two unequal
Scopes to have the same hash code.hashCode in class java.lang.ObjectScopepublic java.lang.String toString()
Scope.toString in class java.lang.ObjectScope
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.