java.lang.Object
inet.ipaddr.AddressStringParameters
inet.ipaddr.MACAddressStringParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<MACAddressStringParameters>
public class MACAddressStringParameters
extends AddressStringParameters
implements Comparable<MACAddressStringParameters>
This class allows you to control the validation performed by the class
IPAddressString
.
The IPAddressString
class uses a default permissive IPAddressStringParameters instance when you do not specify one.
If you wish to use parameters different from the default, then use this class. All instances are immutable and must be constructed with the nested Builder class.- Author:
- sfoley
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static class
Nested classes/interfaces inherited from class inet.ipaddr.AddressStringParameters
AddressStringParameters.AddressStringFormatParameters, AddressStringParameters.BuilderBase, AddressStringParameters.RangeParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether * is considered to be MAC 6 bytes, EUI-64 8 bytes, or either onefinal boolean
Allows addresses like aa:bb:cc:dd:ee:fffinal boolean
Allows addresses like aa-bb-cc-dd-ee-fffinal boolean
Allows addresses like aaa.bbb.ccc.dddfinal boolean
Allows addresses like aabbcc-ddeefffinal boolean
Allows addresses like aa bb cc dd ee ffstatic final boolean
static final boolean
static final boolean
static final boolean
static final boolean
Fields inherited from class inet.ipaddr.AddressStringParameters
allowAll, allowEmpty, allowSingleSegment, DEFAULT_ALLOW_ALL, DEFAULT_ALLOW_EMPTY, DEFAULT_ALLOW_SINGLE_SEGMENT
-
Constructor Summary
ConstructorsConstructorDescriptionMACAddressStringParameters
(boolean allowEmpty, boolean allowAll, MACAddressStringParameters.AddressSize allAddresses, boolean allowSingleSegment, boolean allowDashed, boolean allowSingleDashed, boolean allowColonDelimited, boolean allowDotted, boolean allowSpaceDelimited, MACAddressStringParameters.MACAddressStringFormatParameters formatOpts, MACAddressNetwork network) -
Method Summary
Methods inherited from class inet.ipaddr.AddressStringParameters
compareTo, toBuilder
-
Field Details
-
DEFAULT_ALLOW_DASHED
public static final boolean DEFAULT_ALLOW_DASHED- See Also:
-
DEFAULT_ALLOW_SINGLE_DASHED
public static final boolean DEFAULT_ALLOW_SINGLE_DASHED- See Also:
-
DEFAULT_ALLOW_COLON_DELIMITED
public static final boolean DEFAULT_ALLOW_COLON_DELIMITED- See Also:
-
DEFAULT_ALLOW_DOTTED
public static final boolean DEFAULT_ALLOW_DOTTED- See Also:
-
DEFAULT_ALLOW_SPACE_DELIMITED
public static final boolean DEFAULT_ALLOW_SPACE_DELIMITED- See Also:
-
addressSize
Whether * is considered to be MAC 6 bytes, EUI-64 8 bytes, or either one -
allowDashed
public final boolean allowDashedAllows addresses like aa-bb-cc-dd-ee-ff -
allowSingleDashed
public final boolean allowSingleDashedAllows addresses like aabbcc-ddeeff -
allowColonDelimited
public final boolean allowColonDelimitedAllows addresses like aa:bb:cc:dd:ee:ff -
allowDotted
public final boolean allowDottedAllows addresses like aaa.bbb.ccc.ddd -
allowSpaceDelimited
public final boolean allowSpaceDelimitedAllows addresses like aa bb cc dd ee ff
-
-
Constructor Details
-
MACAddressStringParameters
public MACAddressStringParameters(boolean allowEmpty, boolean allowAll, MACAddressStringParameters.AddressSize allAddresses, boolean allowSingleSegment, boolean allowDashed, boolean allowSingleDashed, boolean allowColonDelimited, boolean allowDotted, boolean allowSpaceDelimited, MACAddressStringParameters.MACAddressStringFormatParameters formatOpts, MACAddressNetwork network)
-
-
Method Details
-
toBuilder
-
getNetwork
-
getFormatParameters
-
clone
- Overrides:
clone
in classAddressStringParameters
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MACAddressStringParameters>
-
equals
- Overrides:
equals
in classAddressStringParameters
-
hashCode
public int hashCode()
-