public final class Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
arrayContains(char[] array,
char element)
Checks if an array contains the specified element.
|
static int |
arrayIndexOf(char[] array,
char element)
Returns the index, within the specified array, of the first occurrence of the specified
character.
|
static double |
parseDouble(CharsWrapper chars)
Parses a CharsWrapper that represents a double value.
|
static int |
parseInt(CharsWrapper chars,
int base)
Parses a CharsWrapper that represents an int value in the specified base.
|
static long |
parseLong(CharsWrapper chars,
int base)
Parses a CharsWrapper that represents a long value in the specified base.
|
public static boolean arrayContains(char[] array,
char element)
array - the arrayelement - the element to searchpublic static int arrayIndexOf(char[] array,
char element)
array - the arrayelement - the element to searchpublic static long parseLong(CharsWrapper chars, int base)
chars - the CharsWrapper representing a longbase - the base of the numberpublic static int parseInt(CharsWrapper chars, int base)
chars - the CharsWrapper representing an intbase - the base of the numberpublic static double parseDouble(CharsWrapper chars)
chars - the CharsWrapper representing a double