Module inet.ipaddr

Class ParsedIPAddress.Masker

java.lang.Object
inet.ipaddr.format.validate.ParsedIPAddress.Masker
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ParsedIPAddress.ExtendedMasker, ParsedIPAddress.FullRangeMasker, ParsedIPAddress.SpecificValueMasker
Enclosing class:
ParsedIPAddress

public abstract static class ParsedIPAddress.Masker extends Object implements Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Masker(boolean isSequential)
     
  • Method Summary

    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
    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 Details

    • Masker

      public Masker(boolean isSequential)
  • Method Details

    • getMaskedLower

      public long getMaskedLower(long value, long maskValue)
      The lowest masked value, which is not necessarily the lowest value masked
      Parameters:
      maskValue -
      upperValue -
      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: