Package org.eclipse.jetty.util
Class IPAddressMap.OctetPattern
- java.lang.Object
-
- java.util.BitSet
-
- org.eclipse.jetty.util.IPAddressMap.OctetPattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Enclosing class:
- IPAddressMap<TYPE>
private static class IPAddressMap.OctetPattern extends java.util.BitSetOctetPattern Represents a single octet wildcard. Matches the wildcard to the specified octet value.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.BitSet_mask
-
Constructor Summary
Constructors Constructor Description OctetPattern(java.lang.String octetSpec)Create new OctetPattern
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(int number)Match specified octet value against the wildcardbooleanmatch(java.lang.String value)Match specified octet value against the wildcard-
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
-
-
-
-
Method Detail
-
match
public boolean match(java.lang.String value) throws java.lang.IllegalArgumentExceptionMatch specified octet value against the wildcard- Parameters:
value- octet value- Returns:
- true if specified octet value matches the wildcard
- Throws:
java.lang.IllegalArgumentException- if specified octet value is invalid
-
match
public boolean match(int number) throws java.lang.IllegalArgumentExceptionMatch specified octet value against the wildcard- Parameters:
number- octet value- Returns:
- true if specified octet value matches the wildcard
- Throws:
java.lang.IllegalArgumentException- if specified octet value is invalid
-
-