public virtual unsafe short GetbPictureCount()
 {
     if (id_getbPictureCount == IntPtr.Zero)
     {
         id_getbPictureCount = JNIEnv.GetMethodID(class_ref, "getbPictureCount", "()S");
     }
     try {
         if (GetType() == ThresholdType)
         {
             return(JNIEnv.CallShortMethod(((global::Java.Lang.Object) this).Handle, id_getbPictureCount));
         }
         else
         {
             return(JNIEnv.CallNonvirtualShortMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getbPictureCount", "()S")));
         }
     } finally {
     }
 }
            public virtual unsafe short GetInt16(int p0)
            {
                if (id_getInt16_I == IntPtr.Zero)
                {
                    id_getInt16_I = JNIEnv.GetMethodID(class_ref, "getInt16", "(I)S");
                }
                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(p0);

                    if (GetType() == ThresholdType)
                    {
                        return(JNIEnv.CallShortMethod(Handle, id_getInt16_I, __args));
                    }
                    else
                    {
                        return(JNIEnv.CallNonvirtualShortMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getInt16", "(I)S"), __args));
                    }
                } finally {
                }
            }