Module inet.ipaddr

Class IPv4AddressSegment

All Implemented Interfaces:
AddressComponent, AddressSegment, AddressComponentRange, AddressGenericDivision, AddressItem, AddressItemRange, IPAddressGenericDivision, AddressStringDivision, IPAddressStringDivision, Serializable, Comparable<AddressItem>, Iterable<IPv4AddressSegment>

public class IPv4AddressSegment extends IPAddressSegment implements Iterable<IPv4AddressSegment>
This represents a segment of an IPv4 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.
Author:
sfoley
See Also: