Qore jni Module  1.2.0
org.qore.jni.Hash Class Reference

Java Hash class to make it easier to work with Qore hash data. More...

Inherits LinkedHashMap< String, Object >.

Public Member Methods

 Hash ()
 Creates the object.
 
 Hash (Map< String, Object > m)
 Creates the object.
 
boolean getBool (String key)
 Returns the given key as a boolean. More...
 
int getByte (String key)
 Returns the given key as a byte. More...
 
char getChar (String key)
 Returns the given key as a char.
 
short getShort (String key)
 Returns the given key as a short.
 
int getInt (String key)
 Returns the given key as an int.
 
long getLong (String key)
 Returns the given key as a long.
 
float getFloat (String key)
 Returns the given key as a float.
 
double getDouble (String key)
 Returns the given key as a double.
 
String getString (String key)
 Returns the given key as a String.
 
ArrayList< Object > getList (String key)
 Returns the given key as an array.
 
ZonedDateTime getADate (String key)
 Returns the given key as an absolute date/time value.
 
QoreRelativeTime getRDate (String key)
 Returns the given key as a relative date/time value.
 
BigDecimal getNumber (String key)
 Returns the given key as an arbitrary-precision numeric value.
 
byte[] getBinary (String key)
 Returns the given key as a byte array.
 
Hash getHash (String key)
 Returns the given key as a hash.
 
QoreClosureMarker getCode (String key)
 Returns the given key as a callable value.
 
boolean getAsBool (String key)
 Returns the given key as a boolean. More...
 
byte getAsByte (String key)
 Returns the given key as a byte. More...
 
short getAsShort (String key)
 Returns the given key as a short. More...
 
int getAsInt (String key)
 Returns the given key as an int. More...
 
long getAsLong (String key)
 Returns the given key as a long. More...
 
float getAsFloat (String key)
 Returns the given key as a float. More...
 
double getAsDouble (String key)
 Returns the given key as a double. More...
 
String getAsString (String key)
 Returns the given key as a String. More...
 

Detailed Description

Java Hash class to make it easier to work with Qore hash data.

Member Function Documentation

◆ getAsBool()

boolean org.qore.jni.Hash.getAsBool ( String  key)
inline

Returns the given key as a boolean.

Converts the type of the value if possible before returning

◆ getAsByte()

byte org.qore.jni.Hash.getAsByte ( String  key)
inline

Returns the given key as a byte.

Converts the type of the value if possible before returning

◆ getAsDouble()

double org.qore.jni.Hash.getAsDouble ( String  key)
inline

Returns the given key as a double.

Converts the type of the value if possible before returning

◆ getAsFloat()

float org.qore.jni.Hash.getAsFloat ( String  key)
inline

Returns the given key as a float.

Converts the type of the value if possible before returning

◆ getAsInt()

int org.qore.jni.Hash.getAsInt ( String  key)
inline

Returns the given key as an int.

Converts the type of the value if possible before returning

◆ getAsLong()

long org.qore.jni.Hash.getAsLong ( String  key)
inline

Returns the given key as a long.

Converts the type of the value if possible before returning

◆ getAsShort()

short org.qore.jni.Hash.getAsShort ( String  key)
inline

Returns the given key as a short.

Converts the type of the value if possible before returning

◆ getAsString()

String org.qore.jni.Hash.getAsString ( String  key)
inline

Returns the given key as a String.

Converts the type of the value if possible before returning

◆ getBool()

boolean org.qore.jni.Hash.getBool ( String  key)
inline

Returns the given key as a boolean.

See also
getAsBool()

◆ getByte()

int org.qore.jni.Hash.getByte ( String  key)
inline

Returns the given key as a byte.

See also
getAsByte()

The documentation for this class was generated from the following file: