public static class Kstat2.Kstat2Map extends PointerType
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue(java.lang.String name)
Convenience method for
Kstat2.kstat2_map_get(Kstat2Map, String, PointerByReference) that
retrieves the name/value (nv) pair identified by the supplied name and
returns the value as an object. |
Kstat2.Kstat2NV |
mapGet(java.lang.String name)
Convenience method for
Kstat2.kstat2_map_get(Kstat2Map, String, PointerByReference) that
retrieves the name/value (nv) pair identified by the supplied name. |
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toStringpublic Kstat2Map()
public Kstat2Map(Pointer p)
public Kstat2.Kstat2NV mapGet(java.lang.String name)
Kstat2.kstat2_map_get(Kstat2Map, String, PointerByReference) that
retrieves the name/value (nv) pair identified by the supplied name.name - The uri of the data to retrieve.public java.lang.Object getValue(java.lang.String name)
Kstat2.kstat2_map_get(Kstat2Map, String, PointerByReference) that
retrieves the name/value (nv) pair identified by the supplied name and
returns the value as an object.name - The name of the data to retrieve.Kstat2.KSTAT2_NVVT_MAP, a
Kstat2.Kstat2Map is returned.
If the value is of type Kstat2.KSTAT2_NVVT_INT, a
long is returned.
If the value is of type Kstat2.KSTAT2_NVVT_INTS, an array of
long is returned.
If the value is of type Kstat2.KSTAT2_NVVT_STR, a
String is returned.
If the value is of type Kstat2.KSTAT2_NVVT_STRS, an array of
String is returned.
If no value exists for this property (error or invalid data
Kstat2.KSTAT2_NVF_INVAL), returns null.