android.os.Bundle.putChar()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中android.os.Bundle.putChar()方法的一些代码示例,展示了Bundle.putChar()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bundle.putChar()方法的具体详情如下:
包路径:android.os.Bundle
类名称:Bundle
方法名:putChar

Bundle.putChar介绍

暂无

代码示例

代码示例来源:origin: androidannotations/androidannotations

public I arg(String key, char value) {
  args.putChar(key, value);
  return (I) this;
}

代码示例来源:origin: facebook/facebook-android-sdk

String charString = json.getString(JSON_VALUE);
if (charString != null && charString.length() == 1) {
  bundle.putChar(key, charString.charAt(0));

代码示例来源:origin: konmik/nucleus

when(bundle.getByte(anyString(), anyByte())).thenAnswer(getOrDefault);
doAnswer(put).when(bundle).putChar(anyString(), anyChar());
when(bundle.getChar(anyString())).thenAnswer(get);
when(bundle.getChar(anyString(), anyChar())).thenAnswer(getOrDefault);

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts a char value into the mapping of this Bundle, replacing
 * any existing value for the given key.
 *
 * @param key   a String, or null
 * @param value a char, or null
 */
public Bundler putChar(String key, char value) {
 bundle.putChar(key, value);
 return this;
}

代码示例来源:origin: ogaclejapan/SmartTabLayout

/**
 * Inserts a char value into the mapping of this Bundle, replacing
 * any existing value for the given key.
 *
 * @param key   a String, or null
 * @param value a char, or null
 */
public Bundler putChar(String key, char value) {
 bundle.putChar(key, value);
 return this;
}

代码示例来源:origin: bluelinelabs/Conductor

public BundleBuilder putChar(String key, char value) {
  bundle.putChar(key, value);
  return this;
}

代码示例来源:origin: f2prateek/dart

/**
 * Inserts a char value into the mapping of the underlying Bundle, replacing any existing value
 * for the given key.
 *
 * @param key a String, or null
 * @param value a char, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, char value) {
 delegate.putChar(key, value);
 return this;
}

代码示例来源:origin: facebook/facebook-android-sdk

private static void putChar(String key, Bundle bundle) {
  bundle.putChar(key, getChar());
}

代码示例来源:origin: jberkel/sms-backup-plus

public BundleBuilder putChar(String key, char value) {
  bundle.putChar(key, value);
  return this;
}

代码示例来源:origin: meituan/WMRouter

/**
 * 附加到Intent的Extra
 */
public DefaultUriRequest putExtra(String name, char value) {
  extra().putChar(name, value);
  return this;
}

代码示例来源:origin: limedroid/XDroidMvp

public Router putChar(@Nullable String key, char value) {
  getBundleData().putChar(key, value);
  return this;
}

代码示例来源:origin: 80945540/LCRapidDevelop

/**
 * Inserts a char value into the mapping of this Bundle, replacing
 * any existing value for the given key.
 *
 * @param key   a String, or null
 * @param value a char, or null
 */
public Bundler putChar(String key, char value) {
 bundle.putChar(key, value);
 return this;
}

代码示例来源:origin: com.codeslap/groundy

/**
 * Inserts a char value into the mapping of this Bundle, replacing
 * any existing value for the given key.
 *
 * @param key   a String, or null
 * @param value a char, or null
 */
public Bundler add(String key, char value) {
  mBundle.putChar(key, value);
  return this;
}

代码示例来源:origin: evernote/android-state

public void putBoxedChar(Bundle state, String key, Character x) {
  if (x != null) {
    state.putChar(key + mBaseKey, x);
  }
}

代码示例来源:origin: LuckyJayce/EventBus-Apt

@Override
  public void put(Bundle bundle, String paramName, Object arg) {
    bundle.putChar(paramName, (Character) arg);
  }
});

代码示例来源:origin: 80945540/FreeBook

/**
 * Inserts a char value into the mapping of this Bundle, replacing
 * any existing value for the given key.
 *
 * @param key   a String, or null
 * @param value a char, or null
 */
public Bundler putChar(String key, char value) {
 bundle.putChar(key, value);
 return this;
}

代码示例来源:origin: com.github.stephanenicolas.dart.v2/henson

/**
 * Inserts a char value into the mapping of the underlying Bundle, replacing
 * any existing value for the given key.
 *
 * @param key a String, or null
 * @param value a char, or null
 * @return this bundler instance to chain method calls
 */
public Bundler put(String key, char value) {
 delegate.putChar(key, value);
 return this;
}

代码示例来源:origin: xiaoxiaogogo/Qiaoba

public Builder withChar(String key, char val){
  if(mArgBundle == null){
    mArgBundle = new Bundle();
  }
  mArgBundle.putChar(key, val);
  return this;
}

代码示例来源:origin: 121880399/QuickMvp

public Router putChar(@Nullable String key, char value) {
  getBundleData().putChar(key, value);
  return this;
}

代码示例来源:origin: stackoverflow.com

Bundle b = intent.mExtras;
if      (uri.startsWith("S.", i)) b.putString(key, value);
else if (uri.startsWith("B.", i)) b.putBoolean(key, Boolean.parseBoolean(value));
else if (uri.startsWith("b.", i)) b.putByte(key, Byte.parseByte(value));
else if (uri.startsWith("c.", i)) b.putChar(key, value.charAt(0));
else if (uri.startsWith("d.", i)) b.putDouble(key, Double.parseDouble(value));
else if (uri.startsWith("f.", i)) b.putFloat(key, Float.parseFloat(value));
else if (uri.startsWith("i.", i)) b.putInt(key, Integer.parseInt(value));
else if (uri.startsWith("l.", i)) b.putLong(key, Long.parseLong(value));
else if (uri.startsWith("s.", i)) b.putShort(key, Short.parseShort(value));
else throw new URISyntaxException(uri, "unknown EXTRA type", i);

相关文章

Bundle类方法