Package org.eclipse.jetty.util
Class IPAddressMap.OctetPattern
java.lang.Object
java.util.BitSet
org.eclipse.jetty.util.IPAddressMap.OctetPattern
- All Implemented Interfaces:
Serializable
,Cloneable
- Enclosing class:
- IPAddressMap<TYPE>
OctetPattern
Represents a single octet wildcard.
Matches the wildcard to the specified octet value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.BitSet
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, previousClearBit, previousSetBit, set, set, set, set, size, stream, toByteArray, toLongArray, toString, valueOf, valueOf, valueOf, valueOf, xor
-
Field Details
-
_mask
-
-
Constructor Details
-
OctetPattern
Create new OctetPattern- Parameters:
octetSpec
- octet wildcard specification- Throws:
IllegalArgumentException
- if wildcard specification is invalid
-
-
Method Details
-
match
Match specified octet value against the wildcard- Parameters:
value
- octet value- Returns:
- true if specified octet value matches the wildcard
- Throws:
IllegalArgumentException
- if specified octet value is invalid
-
match
Match specified octet value against the wildcard- Parameters:
number
- octet value- Returns:
- true if specified octet value matches the wildcard
- Throws:
IllegalArgumentException
- if specified octet value is invalid
-