Bundle remove - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Bundle remove method.

This code example shows how to use the following methods:containsKey, putFloat, remove
    assertEquals(0, bundle.getFloat("foo"), 0.005f);
  } 
 
  @Test 
  public void testRemove() { 
    bundle.putFloat("foo", 5f);
    bundle.putFloat("foo2", 5f);
 
    bundle.remove("foo");
 
    assertFalse(bundle.containsKey("foo"));
    assertTrue(bundle.containsKey("foo2"));
  } 
 
  @Test 
  public void testClear() { 
    bundle.putFloat("foo", 5f);
 
    bundle.clear();
 
9
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:containsKey, putFloat, remove
        assertEquals(0, bundle.getFloat("foo"), 0.005f);
    } 
 
    @Test 
    public void testRemove() { 
        bundle.putFloat("foo", 5f);
        bundle.putFloat("foo2", 5f);
 
        bundle.remove("foo");
 
        assertFalse(bundle.containsKey("foo"));
        assertTrue(bundle.containsKey("foo2"));
    } 
 
    @Test 
    public void testClear() { 
        bundle.putFloat("foo", 5f);
 
        bundle.clear();
 
8
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:putByte, remove
     */ 
    public Request put(String name, byte value) {
        removeFromRequestData(name);
        mParamList.add(name);
        mTypeList.add(TYPE_BYTE);
        mBundle.putByte(name, value);
        return this;
    } 
 
    /** 
     * Add a char parameter to the request, replacing any existing value for the given name. 
     * 
     * @param name The parameter name. 
     * @param value The parameter value. 
     * @return This RequestData. 
     */ 
    public Request put(String name, char value) {
        removeFromRequestData(name);
        mParamList.add(name);
        mTypeList.add(TYPE_CHAR);

6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:remove
    return extras.getSerializable(name);
  } 
 
  @Implementation 
  public void removeExtra(String name) {
    extras.remove(name);
  } 
 
  @Implementation 
  public Intent setComponent(ComponentName componentName) {
    this.componentName = componentName;
    return realIntent;
  } 
 
  @Implementation 
  public ComponentName getComponent() {
    return componentName;
  } 
 
  @Implementation 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:remove
        return extras.getSerializable(name);
    } 
 
    @Implementation 
    public void removeExtra(String name) {
        extras.remove(name);
    } 
 
    @Implementation 
    public Intent setComponent(ComponentName componentName) {
        this.componentName = componentName;
        return realIntent;
    } 
 
    @Implementation 
    public ComponentName getComponent() {
        return componentName;
    } 
 
    @Implementation 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java

Related Bundle remove Questions & Answers:

remove Method Overview
Removes any entry with the given key from the mapping of this Bundle.
See Code Examples for other Android Bundle Methods: