本文整理了Java中android.os.Bundle.putDoubleArray()
方法的一些代码示例,展示了Bundle.putDoubleArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bundle.putDoubleArray()
方法的具体详情如下:
包路径:android.os.Bundle
类名称:Bundle
方法名:putDoubleArray
暂无
代码示例来源:origin: androidannotations/androidannotations
public I arg(String key, double[] value) {
args.putDoubleArray(key, value);
return (I) this;
}
代码示例来源:origin: ogaclejapan/SmartTabLayout
/**
* Inserts a double array value into the mapping of this Bundle, replacing
* any existing value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
*/
public Bundler putDoubleArray(String key, double[] value) {
bundle.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: ogaclejapan/SmartTabLayout
/**
* Inserts a double array value into the mapping of this Bundle, replacing
* any existing value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
*/
public Bundler putDoubleArray(String key, double[] value) {
bundle.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: bluelinelabs/Conductor
public BundleBuilder putDoubleArray(String key, double[] value) {
bundle.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: f2prateek/dart
/**
* Inserts a double array value into the mapping of the underlying Bundle, replacing any existing
* value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
* @return this bundler instance to chain method calls
*/
public Bundler put(String key, double[] value) {
delegate.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: facebook/facebook-android-sdk
/**
* Sets an array of double values in the object.
* @param key The key for the value.
* @param value The value.
* @return The builder.
*/
public E putDoubleArray(final String key, @Nullable final double[] value) {
this.bundle.putDoubleArray(key, value);
return (E)this;
}
代码示例来源:origin: facebook/facebook-android-sdk
private static void putDoubleArray(String key, Bundle bundle) {
int length = random.nextInt(50);
double[] array = new double[length];
for (int i = 0; i < length; i++) {
array[i] = random.nextDouble();
}
bundle.putDoubleArray(key, array);
}
代码示例来源:origin: facebook/facebook-android-sdk
public static boolean putJSONValueInBundle(Bundle bundle, String key, Object value) {
if (value == null) {
bundle.remove(key);
} else if (value instanceof Boolean) {
bundle.putBoolean(key, (boolean) value);
} else if (value instanceof boolean[]) {
bundle.putBooleanArray(key, (boolean[]) value);
} else if (value instanceof Double) {
bundle.putDouble(key, (double) value);
} else if (value instanceof double[]) {
bundle.putDoubleArray(key, (double[]) value);
} else if (value instanceof Integer) {
bundle.putInt(key, (int) value);
} else if (value instanceof int[]) {
bundle.putIntArray(key, (int[]) value);
} else if (value instanceof Long) {
bundle.putLong(key, (long) value);
} else if (value instanceof long[]) {
bundle.putLongArray(key, (long[]) value);
} else if (value instanceof String) {
bundle.putString(key, (String) value);
} else if (value instanceof JSONArray) {
bundle.putString(key, value.toString());
} else if (value instanceof JSONObject) {
bundle.putString(key, value.toString());
} else {
return false;
}
return true;
}
代码示例来源:origin: facebook/facebook-android-sdk
array[i] = jsonArray.getDouble(i);
bundle.putDoubleArray(key, array);
} else if (valueType.equals(TYPE_CHAR)) {
String charString = json.getString(JSON_VALUE);
代码示例来源:origin: konmik/nucleus
when(bundle.getLongArray(anyString())).thenAnswer(get);
doAnswer(put).when(bundle).putDoubleArray(anyString(), any(double[].class));
when(bundle.getDoubleArray(anyString())).thenAnswer(get);
代码示例来源:origin: robolectric/robolectric
@Test
public void doubleArray() {
double [] arr = new double[] { 1.2, 3.4 };
bundle.putDoubleArray("foo", arr);
assertThat(bundle.getDoubleArray("foo")).isEqualTo(arr);
assertThat(bundle.getDoubleArray("bar")).isNull();
}
代码示例来源:origin: meituan/WMRouter
/**
* 附加到Intent的Extra
*/
public DefaultUriRequest putExtra(String name, double[] value) {
extra().putDoubleArray(name, value);
return this;
}
代码示例来源:origin: 80945540/FreeBook
/**
* Inserts a double array value into the mapping of this Bundle, replacing
* any existing value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
*/
public Bundler putDoubleArray(String key, double[] value) {
bundle.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: 80945540/LCRapidDevelop
/**
* Inserts a double array value into the mapping of this Bundle, replacing
* any existing value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
*/
public Bundler putDoubleArray(String key, double[] value) {
bundle.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: com.github.stephanenicolas.dart.v2/henson
/**
* Inserts a double array value into the mapping of the underlying Bundle, replacing
* any existing value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
* @return this bundler instance to chain method calls
*/
public Bundler put(String key, double[] value) {
delegate.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: com.codeslap/groundy
/**
* Inserts a double array value into the mapping of this Bundle, replacing
* any existing value for the given key. Either key or value may be null.
*
* @param key a String, or null
* @param value a double array object, or null
*/
public Bundler add(String key, double[] value) {
mBundle.putDoubleArray(key, value);
return this;
}
代码示例来源:origin: LuckyJayce/EventBus-Apt
@Override
public void put(Bundle bundle, String paramName, Object arg) {
bundle.putDoubleArray(paramName, (double[]) arg);
}
});
代码示例来源:origin: stackoverflow.com
Bundle bundle = new Bundle();
bundle.putDoubleArray(endLatitudeStr, endLatitude);
bundle.putDoubleArray(endLongitudeStr, endLongitude);
intent.putExtra(bundle);
startActivity(intent);
代码示例来源:origin: stackoverflow.com
Intent intent = new Intent(EnterExpenses.this, FinalGrade.class);
Bundle bundle = new Bundle();
bundle.putDoubleArray("your_double_key", doubleExpensesArray);
intent.putExtras(bundle);
startActivity(intent);
代码示例来源:origin: subchannel13/EnchantedFortress
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
Log.d(LOG_TAG, "onSaveInstanceState");
outState.putDoubleArray(SaveLoad.SaveKey, SaveLoad.get().serialize(this.game));
}
内容来源于网络,如有侵权,请联系作者删除!