public enum Direction extends Enum<Direction>
| Enum Constant and Description | 
|---|
DOWN
Current price is lower than previous price. 
 | 
UNDEFINED
Direction is undefined, unknown or inapplicable. 
 | 
UP
Current price is higher than previous price. 
 | 
ZERO
Current price is equal to the only known price value suitable for price direction computation. 
 | 
ZERO_DOWN
Current price is the same as previous price and is lower than the last known price of different value. 
 | 
ZERO_UP
Current price is the same as previous price and is higher than the last known price of different value. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getCode()
Returns integer code that is used in flag bits. 
 | 
static Direction | 
valueOf(int code)
Returns direction by integer code bit pattern. 
 | 
static Direction | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static Direction[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Direction UNDEFINED
public static final Direction DOWN
public static final Direction ZERO_DOWN
public static final Direction ZERO
public static final Direction ZERO_UP
public static final Direction UP
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 Direction valueOf(int code)
code - integer code.ArrayIndexOutOfBoundsException - if code is invalid.public int getCode()
Copyright © 2002–2023 Devexperts LLC. All rights reserved.