Package gnu.java.zrtp
Enum ZrtpConstants.SupportedHashes
- java.lang.Object
-
- java.lang.Enum<ZrtpConstants.SupportedHashes>
-
- gnu.java.zrtp.ZrtpConstants.SupportedHashes
-
- All Implemented Interfaces:
Serializable,Comparable<ZrtpConstants.SupportedHashes>
- Enclosing class:
- ZrtpConstants
public static enum ZrtpConstants.SupportedHashes extends Enum<ZrtpConstants.SupportedHashes>
-
-
Field Summary
Fields Modifier and Type Field Description byte[]name
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZrtpConstants.SupportedHashesvalueOf(String name)Returns the enum constant of this type with the specified name.static ZrtpConstants.SupportedHashes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
S256
public static final ZrtpConstants.SupportedHashes S256
-
S384
public static final ZrtpConstants.SupportedHashes S384
-
-
Method Detail
-
values
public static ZrtpConstants.SupportedHashes[] 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 (ZrtpConstants.SupportedHashes c : ZrtpConstants.SupportedHashes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZrtpConstants.SupportedHashes 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
-
-