java.lang.Object
inet.ipaddr.AddressStringParameters
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
IPAddressStringParameters
,MACAddressStringParameters
This class allows you to control the validation performed by the class
IPAddressString
or MACAddressString
.
Those classes use a default permissive instance when you do not specify one.
All instances are immutable and must be constructed with the nested Builder class.
- Author:
- sfoley
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Controls special characters in addresses like '*', '-', '_' -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal boolean
Allows the all-encompassing address *, which represents the network of all IPv4 and IPv6 addressesfinal boolean
Allows zero-length IPAddressStrings like ""final boolean
Allows an address to be specified as a single value, eg ffffffff, without the standard use of segments like 1.2.3.4 or 1:2:4:3:5:6:7:8static final boolean
static final boolean
static final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionAddressStringParameters
(boolean allowEmpty, boolean allowAll, boolean allowSingleSegment) -
Method Summary
-
Field Details
-
DEFAULT_ALLOW_EMPTY
public static final boolean DEFAULT_ALLOW_EMPTY- See Also:
-
DEFAULT_ALLOW_ALL
public static final boolean DEFAULT_ALLOW_ALL- See Also:
-
DEFAULT_ALLOW_SINGLE_SEGMENT
public static final boolean DEFAULT_ALLOW_SINGLE_SEGMENT- See Also:
-
allowEmpty
public final boolean allowEmptyAllows zero-length IPAddressStrings like ""- See Also:
-
allowAll
public final boolean allowAllAllows the all-encompassing address *, which represents the network of all IPv4 and IPv6 addresses- See Also:
-
allowSingleSegment
public final boolean allowSingleSegmentAllows an address to be specified as a single value, eg ffffffff, without the standard use of segments like 1.2.3.4 or 1:2:4:3:5:6:7:8- See Also:
-
-
Constructor Details
-
AddressStringParameters
public AddressStringParameters(boolean allowEmpty, boolean allowAll, boolean allowSingleSegment)
-
-
Method Details