public static enum ArrayAlgorithm.Util extends Enum<ArrayAlgorithm.Util>
Modifier and Type | Method and Description |
---|---|
static void |
checkIndex(Object[] array,
int index) |
static void |
checkIndex(Object[] array,
int from,
int to) |
static ArrayAlgorithm.Util |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArrayAlgorithm.Util[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ArrayAlgorithm.Util[] values()
for (ArrayAlgorithm.Util c : ArrayAlgorithm.Util.values()) System.out.println(c);
public static ArrayAlgorithm.Util valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void checkIndex(Object[] array, int index)
public static void checkIndex(Object[] array, int from, int to)
Copyright © 2017. All Rights Reserved.