- java.lang.Object
-
- inet.ipaddr.AddressStringParameters
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
IPAddressStringParameters,MACAddressStringParameters
public class AddressStringParameters extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThis class allows you to control the validation performed by the classIPAddressStringorMACAddressString.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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddressStringParameters.AddressStringFormatParametersstatic classAddressStringParameters.BuilderBasestatic classAddressStringParameters.RangeParametersControls special characters in addresses like '*', '-', '_'
-
Field Summary
Fields Modifier and Type Field Description booleanallowAllAllows the all-encompassing address *, which represents the network of all IPv4 and IPv6 addressesbooleanallowEmptyAllows zero-length IPAddressStrings like ""booleanallowSingleSegmentAllows 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 booleanDEFAULT_ALLOW_ALLstatic booleanDEFAULT_ALLOW_EMPTYstatic booleanDEFAULT_ALLOW_SINGLE_SEGMENT
-
Constructor Summary
Constructors Constructor Description AddressStringParameters(boolean allowEmpty, boolean allowAll, boolean allowSingleSegment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressStringParametersclone()intcompareTo(AddressStringParameters o)booleanequals(java.lang.Object o)AddressStringParameters.BuilderBasetoBuilder(AddressStringParameters.BuilderBase builder)
-
-
-
Field Detail
-
DEFAULT_ALLOW_EMPTY
public static final boolean DEFAULT_ALLOW_EMPTY
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_ALL
public static final boolean DEFAULT_ALLOW_ALL
- See Also:
- Constant Field Values
-
DEFAULT_ALLOW_SINGLE_SEGMENT
public static final boolean DEFAULT_ALLOW_SINGLE_SEGMENT
- See Also:
- Constant Field Values
-
allowEmpty
public final boolean allowEmpty
Allows zero-length IPAddressStrings like ""- See Also:
DEFAULT_ALLOW_EMPTY
-
allowAll
public final boolean allowAll
Allows the all-encompassing address *, which represents the network of all IPv4 and IPv6 addresses- See Also:
DEFAULT_ALLOW_ALL
-
allowSingleSegment
public final boolean allowSingleSegment
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:8- See Also:
DEFAULT_ALLOW_SINGLE_SEGMENT
-
-
Method Detail
-
toBuilder
public AddressStringParameters.BuilderBase toBuilder(AddressStringParameters.BuilderBase builder)
-
clone
public AddressStringParameters clone()
-
compareTo
public int compareTo(AddressStringParameters o)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-