public class NValue extends NObject
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Modifier | Constructor and Description |
|---|---|
|
NValue(boolean value)
Initializes a new instance of the NValue class.
|
|
NValue(boolean value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(byte value)
Initializes a new instance of the NValue class.
|
|
NValue(byte value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(char value)
Initializes a new instance of the NValue class.
|
|
NValue(char value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(double value)
Initializes a new instance of the NValue class.
|
|
NValue(double value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(float value)
Initializes a new instance of the NValue class.
|
|
NValue(float value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
protected |
NValue(HNObject handle,
boolean claimHandle) |
|
NValue(int value)
Initializes a new instance of the NValue class.
|
|
NValue(int value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(long value)
Initializes a new instance of the NValue class.
|
|
NValue(long value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(NativeSize value)
Initializes a new instance of the NValue class.
|
|
NValue(NativeSize value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(com.sun.jna.Pointer value)
Initializes a new instance of the NValue class.
|
|
NValue(com.sun.jna.Pointer value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
|
NValue(short value)
Initializes a new instance of the NValue class.
|
|
NValue(short value,
EnumSet<NAttribute> attributes)
Initializes a new instance of the NValue class.
|
| Modifier and Type | Method and Description |
|---|---|
static NValue |
changeType(NValue srcValue,
NType type)
Changes the type of the specified value to the new type.
|
static NValue |
changeType(NValue srcValue,
NType type,
EnumSet<NAttribute> attributes)
Changes the type of the specified value to the new type.
|
static NValue |
changeType(NValue srcValue,
NType type,
EnumSet<NAttribute> attributes,
String format)
Changes the type of the specified value to the new type.
|
static <E> NValue |
fromClass(Class<E> cls,
E value)
Creates a new value from the specified class.
|
static <E> NValue |
fromClass(Class<E> cls,
E value,
EnumSet<NAttribute> attributes)
Creates a new value from the specified class.
|
static NValue |
fromDuration(long value)
Creates a new value from the specified duration value.
|
static NValue |
fromDuration(long value,
EnumSet<NAttribute> attributes)
Creates a new value from the specified duration value.
|
static NValue |
fromListener(EventListener value) |
static NValue |
fromListener(EventListener value,
EnumSet<NAttribute> attributes) |
static NValue |
fromListener(EventListener value,
EnumSet<NAttribute> attributes,
NObject target) |
static NValue |
fromListener(EventListener value,
NObject target) |
static NValue |
fromObject(NType type,
NObject value)
Creates a new value from the specified object.
|
static NValue |
fromObject(NType type,
NObject value,
EnumSet<NAttribute> attributes)
Creates a new value from the specified object.
|
static NValue |
fromObject(Object value)
Creates a new value from the specified object.
|
static NValue |
fromObject(Object value,
EnumSet<NAttribute> attributes)
Creates a new value from the specified object.
|
static NValue |
fromResult(int value)
Creates a new value from the specified result.
|
static NValue |
fromResult(int value,
EnumSet<NAttribute> attributes)
Creates a new value from the specified result.
|
static NValue |
fromString(String value)
Creates a new value from the specified string.
|
static NValue |
fromString(String value,
EnumSet<NAttribute> attributes)
Creates a new value from the specified string.
|
EnumSet<NAttribute> |
getAttributes()
Gets the attributes of the value.
|
NTypeCode |
getTypeCode()
Gets the type code of the value.
|
NType |
getValueType()
Gets the type of the value.
|
boolean |
isWrapper()
Checks whether the value is a wrapper.
|
static NType |
nameValuePairNativeTypeOf()
Retrieves a function that retrieves NType object for the name value pair structure.
|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
com.sun.jna.Pointer |
ptr()
Returns a pointer to the value.
|
long |
size()
Gets the size of the value.
|
boolean |
toBoolean()
Converts the current value into a Boolean value.
|
boolean |
toBoolean(EnumSet<NAttribute> attributes)
Converts the current value into a Boolean value.
|
boolean |
toBoolean(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a Boolean value.
|
byte |
toByte()
Converts the current value into a byte.
|
byte |
toByte(EnumSet<NAttribute> attributes)
Converts the current value into a byte.
|
byte |
toByte(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a byte.
|
char |
toCharacter()
Converts the current value into a char.
|
char |
toCharacter(EnumSet<NAttribute> attributes)
Converts the current value into a char.
|
char |
toCharacter(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a char.
|
<E> E |
toClass(Class<E> cls)
Converts the current value into a value of the specified class.
|
<E> E |
toClass(Class<E> cls,
EnumSet<NAttribute> attributes)
Converts the current value into a value of the specified class.
|
<E> E |
toClass(Class<E> cls,
EnumSet<NAttribute> attributes,
String format)
Converts the current value into a value of the specified class.
|
protected Object |
toClassInternal(Class<?> cls,
EnumSet<NAttribute> attributes,
String format) |
double |
toDouble()
Converts the current value into a double number.
|
double |
toDouble(EnumSet<NAttribute> attributes)
Converts the current value into a double number.
|
double |
toDouble(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a double number.
|
long |
toDuration()
Converts the current value into a duration value.
|
long |
toDuration(EnumSet<NAttribute> attributes)
Converts the current value into a duration value.
|
long |
toDuration(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a duration value.
|
float |
toFloat()
Converts the specified value into a floating point value.
|
float |
toFloat(EnumSet<NAttribute> attributes)
Converts the current value into a floating point value.
|
float |
toFloat(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a floating point value.
|
int |
toInteger()
Converts the current value into an integer.
|
int |
toInteger(EnumSet<NAttribute> attributes)
Converts the current value into an integer.
|
int |
toInteger(EnumSet<NAttribute> attributes,
String format)
Converts the current value into an integer.
|
long |
toLong()
Converts the current value into a long integer.
|
long |
toLong(EnumSet<NAttribute> attributes)
Converts the current value into a long integer.
|
long |
toLong(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a long integer.
|
NativeSize |
toNativeSize()
Converts the current value into a native size value.
|
NativeSize |
toNativeSize(EnumSet<NAttribute> attributes)
Converts the current value into a native size value.
|
NativeSize |
toNativeSize(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a native size value.
|
Object |
toObject()
Converts the current value into an object.
|
NObject |
toObject(NType type)
Converts the current value into an object.
|
NObject |
toObject(NType type,
EnumSet<NAttribute> attributes)
Converts the current value into an object.
|
NObject |
toObject(NType type,
EnumSet<NAttribute> attributes,
String format)
Converts the current value into an object.
|
static Object |
toObject(NValue value)
Converts the specified value into an object.
|
com.sun.jna.Pointer |
toPointer()
Converts the current value into a pointer.
|
com.sun.jna.Pointer |
toPointer(EnumSet<NAttribute> attributes)
Converts the current value into a pointer.
|
com.sun.jna.Pointer |
toPointer(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a pointer.
|
int |
toResult()
Converts the current value into a result.
|
int |
toResult(EnumSet<NAttribute> attributes)
Converts the current value into a result.
|
int |
toResult(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a result.
|
short |
toShort()
Converts the current value into a short integer.
|
short |
toShort(EnumSet<NAttribute> attributes)
Converts the current value into a short integer.
|
short |
toShort(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a short integer.
|
String |
toString(EnumSet<NAttribute> attributes)
Converts the current value into a string.
|
String |
toString(EnumSet<NAttribute> attributes,
String format)
Converts the current value into a string.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizeprotected NValue(HNObject handle, boolean claimHandle)
public NValue(byte value)
value - The original byte.public NValue(byte value,
EnumSet<NAttribute> attributes)
value - The original byte.attributes - Value attributes.public NValue(short value)
value - The original short integer.public NValue(short value,
EnumSet<NAttribute> attributes)
value - The original short integer.attributes - Value attributes.public NValue(int value)
value - The original integer.public NValue(int value,
EnumSet<NAttribute> attributes)
value - The original integer.attributes - Value attributes.public NValue(long value)
value - The original long integer.public NValue(long value,
EnumSet<NAttribute> attributes)
value - The original long integer.attributes - Value attributes.public NValue(float value)
value - The original floating point value.public NValue(float value,
EnumSet<NAttribute> attributes)
value - The original floating point value.attributes - Value attributes.public NValue(double value)
value - The original double number.public NValue(double value,
EnumSet<NAttribute> attributes)
value - The original double number.attributes - Value attributes.public NValue(boolean value)
value - The original Boolean value.public NValue(boolean value,
EnumSet<NAttribute> attributes)
value - The original Boolean value.attributes - Value attributes.public NValue(NativeSize value)
value - The original native size value.public NValue(NativeSize value, EnumSet<NAttribute> attributes)
value - The original native size value.attributes - Value attributes.public NValue(com.sun.jna.Pointer value)
value - The original pointer.public NValue(com.sun.jna.Pointer value,
EnumSet<NAttribute> attributes)
value - The original pointer.attributes - Value attributes.public NValue(char value)
value - The original char.public NValue(char value,
EnumSet<NAttribute> attributes)
value - The original char.attributes - Value attributes.public static NValue fromListener(EventListener value, EnumSet<NAttribute> attributes, NObject target)
public static NValue fromListener(EventListener value, NObject target)
public static NValue fromListener(EventListener value, EnumSet<NAttribute> attributes)
public static NValue fromListener(EventListener value)
public static NType nativeTypeOf()
public static NType nameValuePairNativeTypeOf()
public static NValue fromObject(Object value, EnumSet<NAttribute> attributes)
value - The original object.attributes - Value attributes.public static NValue fromObject(Object value)
value - The original object.public static <E> NValue fromClass(Class<E> cls, E value, EnumSet<NAttribute> attributes)
cls - Type of the class.value - The original class.attributes - Value attributes.public static <E> NValue fromClass(Class<E> cls, E value)
cls - Type of the class.value - The original class.public static NValue fromResult(int value, EnumSet<NAttribute> attributes)
value - The original result.attributes - Value attributes.public static NValue fromResult(int value)
value - The original result.public static NValue fromString(String value, EnumSet<NAttribute> attributes)
value - The original string.attributes - Value attributes.public static NValue fromString(String value)
value - The original string.public static NValue fromObject(NType type, NObject value, EnumSet<NAttribute> attributes)
type - Type of the object.value - The original object.attributes - Value attributes.public static NValue fromObject(NType type, NObject value)
type - Type of the object.value - The original object.public static NValue fromDuration(long value, EnumSet<NAttribute> attributes)
value - The original duration value.attributes - Value attributes.public static NValue fromDuration(long value)
value - The original duration value.public static NValue changeType(NValue srcValue, NType type, EnumSet<NAttribute> attributes, String format)
srcValue - The original value.type - The new type of the value.attributes - Value attributes.format - Format string.public static NValue changeType(NValue srcValue, NType type, EnumSet<NAttribute> attributes)
srcValue - The original value.type - The new type of the value.attributes - Value attributes.public static NValue changeType(NValue srcValue, NType type)
srcValue - The original value.type - The new type of the value.public static Object toObject(NValue value)
value - The original value.protected Object toClassInternal(Class<?> cls, EnumSet<NAttribute> attributes, String format)
public final NType getValueType()
public final EnumSet<NAttribute> getAttributes()
public final boolean isWrapper()
public final com.sun.jna.Pointer ptr()
public final long size()
public final NTypeCode getTypeCode()
public final Object toObject()
public final <E> E toClass(Class<E> cls, EnumSet<NAttribute> attributes, String format)
cls - Class of the value.attributes - Value attributes.format - Format string.public final <E> E toClass(Class<E> cls, EnumSet<NAttribute> attributes)
cls - Class of the value.attributes - Value attributes.public final <E> E toClass(Class<E> cls)
cls - Class of the value.public final byte toByte(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final byte toByte(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final byte toByte()
public final short toShort(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final short toShort(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final short toShort()
public final int toInteger(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final int toInteger(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final int toInteger()
public final long toLong(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final long toLong(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final long toLong()
public final float toFloat(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final float toFloat(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final float toFloat()
public final double toDouble(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final double toDouble(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final double toDouble()
public final boolean toBoolean(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final boolean toBoolean(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final boolean toBoolean()
public final NativeSize toNativeSize(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final NativeSize toNativeSize(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final NativeSize toNativeSize()
public final com.sun.jna.Pointer toPointer(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final com.sun.jna.Pointer toPointer(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final com.sun.jna.Pointer toPointer()
public final int toResult(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final int toResult(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final int toResult()
public final char toCharacter(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final char toCharacter(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final char toCharacter()
public final String toString(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final String toString(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final NObject toObject(NType type, EnumSet<NAttribute> attributes, String format)
type - Type of the object.attributes - Value attributes.format - Format string.public final NObject toObject(NType type, EnumSet<NAttribute> attributes)
type - Type of the object.attributes - Value attributes.public final NObject toObject(NType type)
type - Type of the object.public final long toDuration(EnumSet<NAttribute> attributes, String format)
attributes - Value attributes.format - Format string.public final long toDuration(EnumSet<NAttribute> attributes)
attributes - Value attributes.public final long toDuration()
Copyright © 2016 Neurotechnology. All rights reserved.