Package adalid.util.io
Enum FileLinesSize
- java.lang.Object
-
- java.lang.Enum<FileLinesSize>
-
- adalid.util.io.FileLinesSize
-
- All Implemented Interfaces:
Serializable,Comparable<FileLinesSize>
public enum FileLinesSize extends Enum<FileLinesSize>
- Author:
- Jorge Campins
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLimit()static FileLinesSizevalueOf(String name)Returns the enum constant of this type with the specified name.static FileLinesSize[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TINY
public static final FileLinesSize TINY
-
SMALL
public static final FileLinesSize SMALL
-
MEDIUM
public static final FileLinesSize MEDIUM
-
LARGE
public static final FileLinesSize LARGE
-
HUGE
public static final FileLinesSize HUGE
-
-
Method Detail
-
values
public static FileLinesSize[] 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 (FileLinesSize c : FileLinesSize.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileLinesSize 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
-
getLimit
public long getLimit()
- Returns:
- the limit
-
-