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.ObjectRepresents a block of addresses allocated for assignment to hosts.- Author:
- scfoley
-
-
Field Summary
Fields Modifier and Type Field Description EblockThe allocated prefix block.java.math.BigIntegerblockSizeThe number of requested addresses.intreservedCountThe number of reserved addresses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigIntegergetCount()Returns the total number of addresses within the block.java.lang.StringtoString()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:
toStringin classjava.lang.Object
-
-