inet.ipaddr.ipv6

Class IPv6AddressSegment

    • Constructor Detail

      • IPv6AddressSegment

        public IPv6AddressSegment(int value)
        Constructs a segment of an IPv6 address with the given value.
        Parameters:
        value - the value of the segment
      • IPv6AddressSegment

        public IPv6AddressSegment(int value,
                                  java.lang.Integer segmentPrefixLength)
        Constructs a segment of an IPv6 address.
        Parameters:
        value - the value of the segment. If the segmentPrefixLength is non-null, the network prefix of the value is used, and the segment represents all segment values with the same network prefix.
        segmentPrefixLength - the segment prefix length, which can be null
      • IPv6AddressSegment

        public IPv6AddressSegment(int lower,
                                  int upper,
                                  java.lang.Integer segmentPrefixLength)
        Constructs a segment of an IPv6 address with the given range of values.
        Parameters:
        segmentPrefixLength - the segment prefix length, which can be null. If segmentPrefixLength is non-null, this segment represents a range of segment values with the given network prefix length.
        lower - the lower value of the range of values represented by the segment. If segmentPrefixLength is non-null, the lower value becomes the smallest value with the same network prefix.
        upper - the upper value of the range of values represented by the segment. If segmentPrefixLength is non-null, the upper value becomes the largest value with the same network prefix.