Package org.refcodes.data
Enum ConsoleDimension
- java.lang.Object
-
- java.lang.Enum<ConsoleDimension>
-
- org.refcodes.data.ConsoleDimension
-
- All Implemented Interfaces:
Serializable
,Comparable<Integer>
,org.refcodes.mixin.ValueAccessor<Integer>
public enum ConsoleDimension extends Enum<ConsoleDimension> implements org.refcodes.mixin.ValueAccessor<Integer>
The Enum ConsoleDimension.- Author:
- steiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAX_HEIGHT
MAX_WIDTH
MIN_HEIGHT
MIN_WIDTH
NORM_HEIGHT
NORM_WIDTH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getValue()
Gets the value.static ConsoleDimension
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConsoleDimension[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MIN_WIDTH
public static final ConsoleDimension MIN_WIDTH
-
NORM_WIDTH
public static final ConsoleDimension NORM_WIDTH
-
MAX_WIDTH
public static final ConsoleDimension MAX_WIDTH
-
MIN_HEIGHT
public static final ConsoleDimension MIN_HEIGHT
-
NORM_HEIGHT
public static final ConsoleDimension NORM_HEIGHT
-
MAX_HEIGHT
public static final ConsoleDimension MAX_HEIGHT
-
-
Method Detail
-
values
public static ConsoleDimension[] 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 (ConsoleDimension c : ConsoleDimension.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsoleDimension 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
-
-