Module inet.ipaddr

Class IPv4JoinedSegments

All Implemented Interfaces:
AddressGenericDivision, AddressItem, IPAddressGenericDivision, AddressStringDivision, IPAddressStringDivision, Serializable, Comparable<AddressItem>

public class IPv4JoinedSegments extends IPAddressJoinedSegments
Author:
sfoley
See Also:
  • Constructor Details

    • IPv4JoinedSegments

      public IPv4JoinedSegments(int joinedCount, int value)
    • IPv4JoinedSegments

      public IPv4JoinedSegments(int joinedCount, long value, Integer segmentPrefixLength)
    • IPv4JoinedSegments

      public IPv4JoinedSegments(int joinedCount, long lower, long upper, Integer segmentPrefixLength)
  • Method Details

    • getMaxDigitCount

      public int getMaxDigitCount()
      Overrides:
      getMaxDigitCount in class IPAddressJoinedSegments
    • getDefaultTextualRadix

      public int getDefaultTextualRadix()
    • equals

      public boolean equals(Object o)
      Description copied from class: AddressDivisionBase
      Two divisions are equal if they: - they match type/version (ipv4, ipv6, mac, or a specific division class) - match bit counts - match values Prefix lengths, for those divisions that have them, are ignored.
      Overrides:
      equals in class IPAddressJoinedSegments