Package org.hyperledger.aries.api
Enum ExchangeVersion
- java.lang.Object
-
- java.lang.Enum<ExchangeVersion>
-
- org.hyperledger.aries.api.ExchangeVersion
-
- All Implemented Interfaces:
Serializable,Comparable<ExchangeVersion>
public enum ExchangeVersion extends Enum<ExchangeVersion>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisV1()booleanisV2()static ExchangeVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static ExchangeVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
V1
public static final ExchangeVersion V1
credential or proof exchange version 1
-
V2
public static final ExchangeVersion V2
credential or proof exchange version 2
-
-
Method Detail
-
values
public static ExchangeVersion[] 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 (ExchangeVersion c : ExchangeVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExchangeVersion 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
-
isV1
public boolean isV1()
-
isV2
public boolean isV2()
-
-