public static enum HiveStringUtils.TraditionalBinaryPrefix extends Enum<HiveStringUtils.TraditionalBinaryPrefix>
Modifier and Type | Method and Description |
---|---|
static long |
string2long(String s)
Convert a string to long.
|
static HiveStringUtils.TraditionalBinaryPrefix |
valueOf(char symbol) |
static HiveStringUtils.TraditionalBinaryPrefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HiveStringUtils.TraditionalBinaryPrefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HiveStringUtils.TraditionalBinaryPrefix KILO
public static final HiveStringUtils.TraditionalBinaryPrefix MEGA
public static final HiveStringUtils.TraditionalBinaryPrefix GIGA
public static final HiveStringUtils.TraditionalBinaryPrefix TERA
public static final HiveStringUtils.TraditionalBinaryPrefix PETA
public static final HiveStringUtils.TraditionalBinaryPrefix EXA
public static HiveStringUtils.TraditionalBinaryPrefix[] values()
for (HiveStringUtils.TraditionalBinaryPrefix c : HiveStringUtils.TraditionalBinaryPrefix.values()) System.out.println(c);
public static HiveStringUtils.TraditionalBinaryPrefix 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 HiveStringUtils.TraditionalBinaryPrefix valueOf(char symbol)
public static long string2long(String s)
s
- input stringCopyright © 2016 The Apache Software Foundation. All rights reserved.