public I arg(String key, char value) { args.putChar(key, value); return (I) this; }
String charString = json.getString(JSON_VALUE); if (charString != null && charString.length() == 1) { bundle.putChar(key, charString.charAt(0));
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);
/** * 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; }
/** * 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; }
public BundleBuilder putChar(String key, char value) { bundle.putChar(key, value); return this; }
/** * 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; }
private static void putChar(String key, Bundle bundle) { bundle.putChar(key, getChar()); }
public BundleBuilder putChar(String key, char value) { bundle.putChar(key, value); return this; }
/** * 附加到Intent的Extra */ public DefaultUriRequest putExtra(String name, char value) { extra().putChar(name, value); return this; }
public Router putChar(@Nullable String key, char value) { getBundleData().putChar(key, value); return this; }
/** * 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; }
/** * 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; }
public void putBoxedChar(Bundle state, String key, Character x) { if (x != null) { state.putChar(key + mBaseKey, x); } }
@Override public void put(Bundle bundle, String paramName, Object arg) { bundle.putChar(paramName, (Character) arg); } });
/** * 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; }
/** * 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; }
public Builder withChar(String key, char val){ if(mArgBundle == null){ mArgBundle = new Bundle(); } mArgBundle.putChar(key, val); return this; }
public Router putChar(@Nullable String key, char value) { getBundleData().putChar(key, value); return this; }
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);