- java.lang.Object
-
- java.lang.Enum<IoBlockSize>
-
- org.refcodes.data.IoBlockSize
-
- All Implemented Interfaces:
Serializable
,Comparable<IoBlockSize>
,org.refcodes.mixin.SizeAccessor
public enum IoBlockSize extends Enum<IoBlockSize> implements org.refcodes.mixin.SizeAccessor
TheIoBlockSize
defined values used inside a control flow.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSize()
static IoBlockSize
valueOf(String name)
Returns the enum constant of this type with the specified name.static IoBlockSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MIN
public static final IoBlockSize MIN
-
NORM
public static final IoBlockSize NORM
-
MAX
public static final IoBlockSize MAX
-
-
Method Detail
-
values
public static IoBlockSize[] 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 (IoBlockSize c : IoBlockSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IoBlockSize valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceorg.refcodes.mixin.SizeAccessor
-
-