@Platform(include="<nix/Value.hpp>") @Platform(value="linux",link="nix@.1",preload="hdf5@.7") @Platform(value="windows",link="nix",preload={"hdf5","msvcp120","msvcr120","szip","zlib"})
@Namespace(value="nix")
@NoOffset
public class Value
extends org.bytedeco.javacpp.Pointer
| Constructor and Description |
|---|
Value()
Constructor.
|
Value(boolean value)
Constructor.
|
Value(double value)
Constructor.
|
Value(int value)
Constructor.
|
Value(long value)
Constructor.
|
Value(String value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean()
Getter for boolean value.
|
double |
getDouble()
Getter for double value.
|
int |
getInt()
Getter for integer value.
|
long |
getLong()
Getter for long integer value.
|
String |
getString()
Getter for string value.
|
int |
getType()
Get type of data stored.
|
void |
setBoolean(boolean value)
Set boolean data.
|
void |
setDouble(double value)
Set double data.
|
void |
setInt(int value)
Set integer data.
|
void |
setLong(long value)
Set long integer data.
|
void |
setString(String value)
Set string data.
|
static boolean |
supportsType(int dtype)
Check if value supports a data type.
|
void |
swap(Value other)
Swap value with another value.
|
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, zeropublic Value()
public Value(boolean value)
value - boolean value to set.public Value(int value)
value - integer value to set.public Value(long value)
value - long integer value to set.public Value(double value)
value - double value to set.public Value(String value)
value - string value to set.public void setBoolean(boolean value)
value - boolean value to set.public void setInt(int value)
value - integer value to setpublic void setLong(long value)
value - long integer value to setpublic void setDouble(double value)
value - double value to setpublic void setString(String value)
value - string value to setpublic boolean getBoolean()
public int getInt()
public long getLong()
public double getDouble()
public String getString()
@Name(value="type") @ByVal @Cast(value="nix::DataType") public int getType()
DataTypepublic void swap(@ByRef
Value other)
other - value object.@Name(value="supports_type")
@Cast(value="bool")
public static boolean supportsType(@Cast(value="nix::DataType")
int dtype)
dtype - DataType constant.Copyright © 2016. All rights reserved.