Enum MACAddressFormatType
- java.lang.Object
-
- java.lang.Enum<MACAddressFormatType>
-
- net.andreinc.mockneat.types.enums.MACAddressFormatType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MACAddressFormatType>
public enum MACAddressFormatType extends java.lang.Enum<MACAddressFormatType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLON_EVERY_2_DIGITSDASH_EVERY_2_DIGITSDOT_EVERY_2_DIGITSDOT_EVERY_4_DIGITS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TriConsumer<java.lang.Integer,java.lang.StringBuilder,MockNeat>getConsumer()static MACAddressFormatTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MACAddressFormatType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DASH_EVERY_2_DIGITS
public static final MACAddressFormatType DASH_EVERY_2_DIGITS
-
COLON_EVERY_2_DIGITS
public static final MACAddressFormatType COLON_EVERY_2_DIGITS
-
DOT_EVERY_2_DIGITS
public static final MACAddressFormatType DOT_EVERY_2_DIGITS
-
DOT_EVERY_4_DIGITS
public static final MACAddressFormatType DOT_EVERY_4_DIGITS
-
-
Method Detail
-
values
public static MACAddressFormatType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MACAddressFormatType c : MACAddressFormatType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MACAddressFormatType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getConsumer
public TriConsumer<java.lang.Integer,java.lang.StringBuilder,MockNeat> getConsumer()
-
-