- java.lang.Object
-
- inet.ipaddr.format.validate.ParsedIPAddress.Masker
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ParsedIPAddress.ExtendedMasker
,ParsedIPAddress.FullRangeMasker
,ParsedIPAddress.SpecificValueMasker
- Enclosing class:
- ParsedIPAddress
public abstract static class ParsedIPAddress.Masker extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
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 maskedlong
getMaskedUpper(long upperValue, long maskValue)
The highest masked value, which is not necessarily the highest value maskedboolean
isSequential()
Whether masking all values in the range results in a sequential set of values
-
-
-
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:
-
-