public enum NEPosition extends Enum<NEPosition> implements com.neurotec.lang.NEnum
| Enum Constant and Description |
|---|
BOTH
Both eyes.
|
LEFT
Left eye.
|
RIGHT
Right eye.
|
UNKNOWN
Unknown iris position.
|
| Modifier and Type | Method and Description |
|---|---|
static NEPosition |
get(int value)
Gets the eye position specified by integer value.
|
NEPosition[] |
getAvailableParts(NEPosition[] missingPositions) |
int |
getValue()
Gets the value of the current NEPosition.
|
boolean |
isKnown()
Checks whether the specified position is known.
|
boolean |
isLeft()
Checks whether the specified position is left.
|
boolean |
isOneOf(NEPosition[] supportedPositions)
Checks whether the specified position belongs to the supported positions.
|
boolean |
isRight()
Checks whether the specified position is right.
|
boolean |
isRightAndLeft()
Checks whether the specified position is both right and left.
|
boolean |
isSingleEye()
Checks whether the specified position represents a single eye.
|
boolean |
isTheEye()
Checks whether the specified position represents a separate eye.
|
boolean |
isTwoEyes()
Checks whether the specified position represents two eyes.
|
boolean |
isValid()
Checks whether the specified position is valid.
|
boolean |
isValidTheEye()
Checks whether the specified position represents a separate eye and is valid.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NEPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NEPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NEPosition UNKNOWN
public static final NEPosition RIGHT
public static final NEPosition LEFT
public static final NEPosition BOTH
public static NEPosition[] values()
for (NEPosition c : NEPosition.values()) System.out.println(c);
public static NEPosition 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 com.neurotec.lang.NType nativeTypeOf()
public static NEPosition get(int value)
value - Integer value.public int getValue()
getValue in interface com.neurotec.lang.NEnumpublic boolean isValidTheEye()
value - The specified position.public boolean isValid()
value - The specified position.public boolean isTheEye()
value - The specified position.public boolean isSingleEye()
value - The specified position.public boolean isTwoEyes()
value - The specified position.public boolean isKnown()
value - The specified position.public boolean isRight()
value - The specified position.public boolean isLeft()
value - The specified position.public boolean isRightAndLeft()
value - The specified position.public boolean isOneOf(NEPosition[] supportedPositions)
value - The specified position.supportedPositions - Supported position array.public NEPosition[] getAvailableParts(NEPosition[] missingPositions)
Copyright © 2016 Neurotechnology. All rights reserved.