|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.multicast.allocation.ScopeList
A multicast scope list.
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 | |
ScopeList()
Creates an empty ScopeList . |
|
ScopeList(java.util.Enumeration scopes)
Creates a ScopeList with the specified parameters. |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this ScopeList with the specified
object for order. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
Scope |
findScopeForTTL(int ttl)
Finds a Scope suitable for use with the specified ttl value. |
java.util.Enumeration |
getScopes()
Gets an Enumeration of the scopes in this list. |
int |
hashCode()
Returns a hash code value for this object. |
java.lang.String |
toString()
Returns a string representation of this ScopeList . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ScopeList()
ScopeList
.public ScopeList(java.util.Enumeration scopes)
ScopeList
with the specified parameters.scopes
- an Enumeration
of Scopes
to be includedMethod Detail |
public java.util.Enumeration getScopes()
Enumeration
of the scopes in this list.Enumeration
of Scopes
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
ScopeList
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 ScopeList
,
a ClassCastException
is thrown.
This method imposes a total ordering on ScopeLists
.
ScopeLists
are ordered according to the order
of the Scopes
contained within them.
o
- the Object
to compare againstjava.lang.ClassCastException
- if the objects cannot be comparedpublic boolean equals(java.lang.Object obj)
ScopeLists
are equal if and only the Scopes
in the ScopeLists
are all equal.equals
in class java.lang.Object
obj
- the object with which to comparetrue
if this object is the same as the
reference object, false
otherwise.public int hashCode()
ScopeLists
are equal
if they are equal. However, it may be possible for two unequal
ScopeLists
to have the same hash code.hashCode
in class java.lang.Object
ScopeList
public Scope findScopeForTTL(int ttl)
public java.lang.String toString()
ScopeList
.toString
in class java.lang.Object
ScopeList
|
|||||||||
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.