public class MACAddressStringParameters extends AddressStringParameters implements Comparable<MACAddressStringParameters>
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.Modifier and Type | Class and Description |
---|---|
static class |
MACAddressStringParameters.AddressSize |
static class |
MACAddressStringParameters.Builder |
static class |
MACAddressStringParameters.MACAddressStringFormatParameters |
AddressStringParameters.AddressStringFormatParameters, AddressStringParameters.BuilderBase, AddressStringParameters.RangeParameters
Modifier and Type | Field and Description |
---|---|
MACAddressStringParameters.AddressSize |
addressSize
Whether * is considered to be MAC 6 bytes, EUI-64 8 bytes, or either one
|
boolean |
allowColonDelimited
Allows addresses like aa:bb:cc:dd:ee:ff
|
boolean |
allowDashed
Allows addresses like aa-bb-cc-dd-ee-ff
|
boolean |
allowDotted
Allows addresses like aaa.bbb.ccc.ddd
|
boolean |
allowSingleDashed
Allows addresses like aabbcc-ddeeff
|
boolean |
allowSpaceDelimited
Allows addresses like aa bb cc dd ee ff
|
static boolean |
DEFAULT_ALLOW_COLON_DELIMITED |
static boolean |
DEFAULT_ALLOW_DASHED |
static boolean |
DEFAULT_ALLOW_DOTTED |
static boolean |
DEFAULT_ALLOW_SINGLE_DASHED |
static boolean |
DEFAULT_ALLOW_SPACE_DELIMITED |
allowAll, allowEmpty, allowSingleSegment, DEFAULT_ALLOW_ALL, DEFAULT_ALLOW_EMPTY, DEFAULT_ALLOW_SINGLE_SEGMENT
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
MACAddressStringParameters |
clone() |
int |
compareTo(MACAddressStringParameters o) |
boolean |
equals(Object o) |
MACAddressStringParameters.MACAddressStringFormatParameters |
getFormatParameters() |
MACAddressNetwork |
getNetwork() |
int |
hashCode() |
MACAddressStringParameters.Builder |
toBuilder() |
compareTo, toBuilder
public static final boolean DEFAULT_ALLOW_DASHED
public static final boolean DEFAULT_ALLOW_SINGLE_DASHED
public static final boolean DEFAULT_ALLOW_COLON_DELIMITED
public static final boolean DEFAULT_ALLOW_DOTTED
public static final boolean DEFAULT_ALLOW_SPACE_DELIMITED
public final MACAddressStringParameters.AddressSize addressSize
public final boolean allowDashed
public final boolean allowSingleDashed
public final boolean allowColonDelimited
public final boolean allowDotted
public final boolean allowSpaceDelimited
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)
public MACAddressStringParameters.Builder toBuilder()
public MACAddressNetwork getNetwork()
public MACAddressStringParameters.MACAddressStringFormatParameters getFormatParameters()
public MACAddressStringParameters clone()
clone
in class AddressStringParameters
public int compareTo(MACAddressStringParameters o)
compareTo
in interface Comparable<MACAddressStringParameters>
public boolean equals(Object o)
equals
in class AddressStringParameters