Module inet.ipaddr
Package inet.ipaddr

Class IPAddressNetwork.IPAddressStringGenerator

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    IPAddressNetwork<T extends IPAddress,​R extends IPAddressSection,​E extends IPAddressSection,​S extends IPAddressSegment,​J extends java.net.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:
    Serialized Form