inet.ipaddr.ipv4

Class IPv4AddressSegment

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IPAddressDivision>


    public class IPv4AddressSegment
    extends IPAddressSegment
    This represents a segment of an IP address. For IPv4, segments are 1 byte. For IPv6, they are two bytes. Like String and Integer and various others basic objects, segments are immutable, which also makes them thread-safe.
    See Also:
    Serialized Form