Module inet.ipaddr

Class ParsedIPAddress.Masker

    • Constructor Summary

      Constructors 
      Constructor Description
      Masker​(boolean isSequential)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getMaskedLower​(long value, long maskValue)
      The lowest masked value, which is not necessarily the lowest value masked
      long getMaskedUpper​(long upperValue, long maskValue)
      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

      • Masker

        public Masker​(boolean isSequential)
    • Method Detail

      • getMaskedLower

        public long getMaskedLower​(long value,
                                   long maskValue)
        The lowest masked value, which is not necessarily the lowest value masked
        Parameters:
        upperValue -
        maskValue -
        Returns:
      • getMaskedUpper

        public long getMaskedUpper​(long upperValue,
                                   long maskValue)
        The highest masked value, which is not necessarily the highest value masked
        Parameters:
        upperValue -
        maskValue -
        Returns:
      • isSequential

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