com.sun.multicast.allocation
Class AddressSet

java.lang.Object
  |
  +--com.sun.multicast.allocation.AddressSet

public class AddressSet
extends java.lang.Object

A set of network addresses. All of the addresses in the AddressSet must be of the same address type.

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
AddressSet(java.util.Enumeration ranges)
          Creates an AddressSet containing the specified set of AddressRanges.
 
Method Summary
 long getAddressCount()
          Gets the number of addresses in this AddressSet.
 java.util.Enumeration getAddressRanges()
          Gets an Enumeration of AddressRanges that are contained in this AddressSet.
 AddressType getAddressType()
          Gets the type of addresses in this AddressSet.
 Address getFirstAddress()
          Gets the first Address in this AddressSet.
 java.lang.String toString()
          Returns a string representation of this AddressSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressSet

public AddressSet(java.util.Enumeration ranges)
Creates an AddressSet containing the specified set of AddressRanges.
Parameters:
ranges - an Enumeration of AddressRanges that will make up the AddressSet
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this AddressSet.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this AddressSet

getAddressRanges

public java.util.Enumeration getAddressRanges()
Gets an Enumeration of AddressRanges that are contained in this AddressSet.
Returns:
an Enumeration of AddressRanges that are contained in this AddressSet.

getFirstAddress

public Address getFirstAddress()
Gets the first Address in this AddressSet.
Returns:
the first Address in this AddressSet

getAddressCount

public long getAddressCount()
Gets the number of addresses in this AddressSet.
Returns:
the number of addresses in this AddressSet

getAddressType

public AddressType getAddressType()
Gets the type of addresses in this AddressSet.
Returns:
the type of addresses in this AddressSet


JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.