Class Kstat2.Kstat2Map
- java.lang.Object
-
- com.sun.jna.PointerType
-
- com.sun.jna.platform.unix.solaris.Kstat2.Kstat2Map
-
- All Implemented Interfaces:
NativeMapped
- Enclosing interface:
- Kstat2
public static class Kstat2.Kstat2Map extends PointerType
Opaque kstat map handle.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue(java.lang.String name)Convenience method forKstat2.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.Kstat2NVmapGet(java.lang.String name)Convenience method forKstat2.kstat2_map_get(Kstat2Map, String, PointerByReference)that retrieves the name/value (nv) pair identified by the supplied name.-
Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
-
-
-
Constructor Detail
-
Kstat2Map
public Kstat2Map()
-
Kstat2Map
public Kstat2Map(Pointer p)
-
-
Method Detail
-
mapGet
public Kstat2.Kstat2NV mapGet(java.lang.String name)
Convenience method forKstat2.kstat2_map_get(Kstat2Map, String, PointerByReference)that retrieves the name/value (nv) pair identified by the supplied name.- Parameters:
name- The uri of the data to retrieve.- Returns:
- The name/value data.
-
getValue
public java.lang.Object getValue(java.lang.String name)
Convenience method forKstat2.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.- Parameters:
name- The name of the data to retrieve.- Returns:
- If the value is of type
Kstat2.KSTAT2_NVVT_MAP, aKstat2.Kstat2Mapis returned.If the value is of type
Kstat2.KSTAT2_NVVT_INT, alongis returned.If the value is of type
Kstat2.KSTAT2_NVVT_INTS, an array oflongis returned.If the value is of type
Kstat2.KSTAT2_NVVT_STR, aStringis returned.If the value is of type
Kstat2.KSTAT2_NVVT_STRS, an array ofStringis returned.If no value exists for this property (error or invalid data
Kstat2.KSTAT2_NVF_INVAL), returnsnull.
-
-