Module inet.ipaddr
Package inet.ipaddr
Class PrefixBlockAllocator.AllocatedBlock<E extends IPAddress>
- java.lang.Object
-
- inet.ipaddr.PrefixBlockAllocator.AllocatedBlock<E>
-
- Type Parameters:
E
- the address type
- Enclosing class:
- PrefixBlockAllocator<E extends IPAddress>
public static class PrefixBlockAllocator.AllocatedBlock<E extends IPAddress> extends java.lang.Object
Represents a block of addresses allocated for assignment to hosts.- Author:
- scfoley
-
-
Field Summary
Fields Modifier and Type Field Description E
block
The allocated prefix block.java.math.BigInteger
blockSize
The number of requested addresses.int
reservedCount
The number of reserved addresses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getCount()
Returns the total number of addresses within the block.java.lang.String
toString()
Returns a string representation of the allocated block.
-
-
-
Method Detail
-
getCount
public java.math.BigInteger getCount()
Returns the total number of addresses within the block. blockSize + reservedCount will not exceed this value.- Returns:
-
toString
public java.lang.String toString()
Returns a string representation of the allocated block.- Overrides:
toString
in classjava.lang.Object
-
-