Module inet.ipaddr
Package inet.ipaddr

Class IPAddressNetwork.IPAddressStringGenerator

java.lang.Object
inet.ipaddr.AddressNetwork.HostIdentifierStringGenerator<IPAddressString>
inet.ipaddr.IPAddressNetwork.IPAddressStringGenerator
All Implemented Interfaces:
Serializable
Enclosing class:
IPAddressNetwork<T extends IPAddress,R extends IPAddressSection,E extends IPAddressSection,S extends IPAddressSegment,J extends InetAddress>

public static class IPAddressNetwork.IPAddressStringGenerator extends AddressNetwork.HostIdentifierStringGenerator<IPAddressString>
Choose a map of your choice to implement a cache of address strings and their associated addresses. The map will map string representations of the address to IPAddressString objects, which in turn cache any resulting IPAddress objects. Those objects are all themselves thread-safe, but the cache will only be thread-safe if you choose a thread-safe map such as ConcurrentHashMap.
Author:
sfoley
See Also: