Module inet.ipaddr

Class AddressDivision.MaskResult

  • Enclosing class:
    AddressDivision

    public static class AddressDivision.MaskResult
    extends java.lang.Object
    Represents the result of masking a sequential range of values
    Author:
    seancfoley
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getMaskedLower()
      The lowest masked value, which is not necessarily the lowest value masked
      long getMaskedUpper()
      The highest masked value, which is not necessarily the highest value masked
      boolean isSequential()
      Whether masking all values in the range results in a sequential set of values
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaskResult

        public MaskResult​(long value,
                          long upperValue,
                          long maskValue,
                          ParsedIPAddress.Masker masker)
    • Method Detail

      • getMaskedLower

        public long getMaskedLower()
        The lowest masked value, which is not necessarily the lowest value masked
        Returns:
      • getMaskedUpper

        public long getMaskedUpper()
        The highest masked value, which is not necessarily the highest value masked
        Returns:
      • isSequential

        public boolean isSequential()
        Whether masking all values in the range results in a sequential set of values
        Returns: