@Test public void testGetByteArrayReturnsDefault() { StateBundle stateBundle = new StateBundle(); assertThat(stateBundle.getByteArray("key")).isNull(); }
@Nullable public byte[] getByteArray(@Nullable String key) { Object o = map.get(key); if(o == null) { return null; } try { return (byte[]) o; } catch(ClassCastException e) { typeWarning(key, o, "byte[]", e); return null; } }
StateBundle implements Parcelable { @Nullable public byte[] getByteArray(@Nullable String key) { Object o = map.get(key); if(o == null) { return null; } try { return (byte[]) o; } catch(ClassCastException e) { typeWarning(key, o, "byte[]", e); return null; } } }
StateBundle implements Parcelable { @Nullable public byte[] getByteArray(@Nullable String key) { Object o = map.get(key); if(o == null) { return null; } try { return (byte[]) o; } catch(ClassCastException e) { typeWarning(key, o, "byte[]", e); return null; } } StateBundle();  StateBundle(@Nonnull StateBundle bundle);  StateBundle(Parcel in); }
StateBundle implements Parcelable { @Nullable public byte[] getByteArray(@Nullable String key) { Object o = map.get(key); if(o == null) { return null; } try { return (byte[]) o; } catch(ClassCastException e) { typeWarning(key, o, "byte[]", e); return null; } } StateBundle();  StateBundle(@Nonnull StateBundle bundle);  StateBundle(Parcel in); int size(); boolean isEmpty(); @Nonnull StateBundle clear(); boolean containsKey(String key); @Nullable Object get(String key); @Nonnull StateBundle remove(String key); @Nonnull StateBundle putAll(@Nonnull StateBundle bundle); @Nonnull Set<String> keySet(); @Nonnull StateBundle putBoolean(@Nullable String key, boolean value); @Nonnull StateBundle putByte(@Nullable String key, byte value); @Nonnull StateBundle putChar(@Nullable String key, char value); @Nonnull StateBundle putShort(@Nullable String key, short value); @Nonnull StateBundle putInt(@Nullable String key, int value); @Nonnull StateBundle putLong(@Nullable String key, long value); @Nonnull StateBundle putFloat(@Nullable String key, float value); @Nonnull StateBundle putDouble(@Nullable String key, double value); @Nonnull StateBundle putString(@Nullable String key, @Nullable String value); @Nonnull StateBundle putCharSequence(@Nullable String key, @Nullable CharSequence value); @Nonnull StateBundle putIntegerArrayList(@Nullable String key, @Nullable ArrayList<Integer> value); @Nonnull StateBundle putStringArrayList(@Nullable String key, @Nullable ArrayList<String> value); @Nonnull StateBundle putCharSequenceArrayList(@Nullable String key, @Nullable ArrayList<CharSequence> value); @Nonnull StateBundle putSerializable(@Nullable String key, @Nullable Serializable value); @Nonnull StateBundle putBooleanArray(@Nullable String key, @Nullable boolean[] value); @Nonnull StateBundle putByteArray(@Nullable String key, @Nullable byte[] value); @Nonnull StateBundle putShortArray(@Nullable String key, @Nullable short[] value); @Nonnull StateBundle putCharArray(@Nullable String key, @Nullable char[] value); @Nonnull StateBundle putIntArray(@Nullable String key, @Nullable int[] value); @Nonnull StateBundle putLongArray(@Nullable String key, @Nullable long[] value); @Nonnull StateBundle putFloatArray(@Nullable String key, @Nullable float[] value); @Nonnull StateBundle putDoubleArray(@Nullable String key, @Nullable double[] value); @Nonnull StateBundle putStringArray(@Nullable String key, @Nullable String[] value); @Nonnull StateBundle putCharSequenceArray(@Nullable String key, @Nullable CharSequence[] value); @Nonnull StateBundle putParcelable(@Nullable String key, @Nullable Parcelable value); @Nonnull StateBundle putParcelableArray(@Nullable String key, @Nullable Parcelable[] value); @Nonnull StateBundle putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value); @Nonnull StateBundle putSparseParcelableArray(@Nullable String key, @Nullable SparseArray<? extends Parcelable> value); @Nonnull StateBundle putBundle(@Nullable String key, @Nullable StateBundle value); boolean getBoolean(@Nonnull String key); boolean getBoolean(@Nonnull String key, boolean defaultValue); byte getByte(@Nonnull String key); @Nonnull Byte getByte(@Nonnull String key, byte defaultValue); char getChar(@Nonnull String key); char getChar(@Nonnull String key, char defaultValue); short getShort(@Nonnull String key); short getShort(@Nonnull String key, short defaultValue); int getInt(@Nonnull String key); int getInt(@Nonnull String key, int defaultValue); long getLong(@Nonnull String key); long getLong(@Nonnull String key, long defaultValue); float getFloat(@Nonnull String key); float getFloat(@Nonnull String key, float defaultValue); double getDouble(@Nonnull String key); double getDouble(@Nonnull String key, double defaultValue); @Nullable String getString(@Nullable String key); @Nonnull String getString(@Nullable String key, @Nonnull String defaultValue); @Nullable CharSequence getCharSequence(@Nullable String key); @Nonnull CharSequence getCharSequence(@Nullable String key, @Nonnull CharSequence defaultValue); @Nullable Serializable getSerializable(@Nullable String key); @Nullable ArrayList<Integer> getIntegerArrayList(@Nullable String key); @Nullable ArrayList<String> getStringArrayList(@Nullable String key); @Nullable ArrayList<CharSequence> getCharSequenceArrayList(@Nullable String key); @Nullable boolean[] getBooleanArray(@Nullable String key); @Nullable byte[] getByteArray(@Nullable String key); @Nullable short[] getShortArray(@Nullable String key); @Nullable char[] getCharArray(@Nullable String key); @Nullable int[] getIntArray(@Nullable String key); @Nullable long[] getLongArray(@Nullable String key); @Nullable float[] getFloatArray(@Nullable String key); @Nullable double[] getDoubleArray(@Nullable String key); @Nullable String[] getStringArray(@Nullable String key); @Nullable CharSequence[] getCharSequenceArray(@Nullable String key); @Nullable StateBundle getBundle(@Nullable String key); @Nullable T getParcelable(@Nullable String key); @Nullable Parcelable[] getParcelableArray(@Nullable String key); @Nullable ArrayList<T> getParcelableArrayList(@Nullable String key); @Nullable SparseArray<T> getSparseParcelableArray(@Nullable String key); void copyToBundle(@Nonnull Bundle bundle); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
StateBundle implements Parcelable { @Nullable public byte[] getByteArray(@Nullable String key) { Object o = map.get(key); if(o == null) { return null; } try { return (byte[]) o; } catch(ClassCastException e) { typeWarning(key, o, "byte[]", e); return null; } } StateBundle();  StateBundle(@Nonnull StateBundle bundle);  StateBundle(Parcel in); int size(); boolean isEmpty(); @Nonnull StateBundle clear(); boolean containsKey(String key); @Nullable Object get(String key); @Nonnull StateBundle remove(String key); @Nonnull StateBundle putAll(@Nonnull StateBundle bundle); @Nonnull Set<String> keySet(); @Nonnull StateBundle putBoolean(@Nullable String key, boolean value); @Nonnull StateBundle putByte(@Nullable String key, byte value); @Nonnull StateBundle putChar(@Nullable String key, char value); @Nonnull StateBundle putShort(@Nullable String key, short value); @Nonnull StateBundle putInt(@Nullable String key, int value); @Nonnull StateBundle putLong(@Nullable String key, long value); @Nonnull StateBundle putFloat(@Nullable String key, float value); @Nonnull StateBundle putDouble(@Nullable String key, double value); @Nonnull StateBundle putString(@Nullable String key, @Nullable String value); @Nonnull StateBundle putCharSequence(@Nullable String key, @Nullable CharSequence value); @Nonnull StateBundle putIntegerArrayList(@Nullable String key, @Nullable ArrayList<Integer> value); @Nonnull StateBundle putStringArrayList(@Nullable String key, @Nullable ArrayList<String> value); @Nonnull StateBundle putCharSequenceArrayList(@Nullable String key, @Nullable ArrayList<CharSequence> value); @Nonnull StateBundle putSerializable(@Nullable String key, @Nullable Serializable value); @Nonnull StateBundle putBooleanArray(@Nullable String key, @Nullable boolean[] value); @Nonnull StateBundle putByteArray(@Nullable String key, @Nullable byte[] value); @Nonnull StateBundle putShortArray(@Nullable String key, @Nullable short[] value); @Nonnull StateBundle putCharArray(@Nullable String key, @Nullable char[] value); @Nonnull StateBundle putIntArray(@Nullable String key, @Nullable int[] value); @Nonnull StateBundle putLongArray(@Nullable String key, @Nullable long[] value); @Nonnull StateBundle putFloatArray(@Nullable String key, @Nullable float[] value); @Nonnull StateBundle putDoubleArray(@Nullable String key, @Nullable double[] value); @Nonnull StateBundle putStringArray(@Nullable String key, @Nullable String[] value); @Nonnull StateBundle putCharSequenceArray(@Nullable String key, @Nullable CharSequence[] value); @Nonnull StateBundle putParcelable(@Nullable String key, @Nullable Parcelable value); @Nonnull StateBundle putParcelableArray(@Nullable String key, @Nullable Parcelable[] value); @Nonnull StateBundle putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value); @Nonnull StateBundle putSparseParcelableArray(@Nullable String key, @Nullable SparseArray<? extends Parcelable> value); @Nonnull StateBundle putBundle(@Nullable String key, @Nullable StateBundle value); boolean getBoolean(@Nonnull String key); boolean getBoolean(@Nonnull String key, boolean defaultValue); byte getByte(@Nonnull String key); @Nonnull Byte getByte(@Nonnull String key, byte defaultValue); char getChar(@Nonnull String key); char getChar(@Nonnull String key, char defaultValue); short getShort(@Nonnull String key); short getShort(@Nonnull String key, short defaultValue); int getInt(@Nonnull String key); int getInt(@Nonnull String key, int defaultValue); long getLong(@Nonnull String key); long getLong(@Nonnull String key, long defaultValue); float getFloat(@Nonnull String key); float getFloat(@Nonnull String key, float defaultValue); double getDouble(@Nonnull String key); double getDouble(@Nonnull String key, double defaultValue); @Nullable String getString(@Nullable String key); @Nonnull String getString(@Nullable String key, @Nonnull String defaultValue); @Nullable CharSequence getCharSequence(@Nullable String key); @Nonnull CharSequence getCharSequence(@Nullable String key, @Nonnull CharSequence defaultValue); @Nullable Serializable getSerializable(@Nullable String key); @Nullable ArrayList<Integer> getIntegerArrayList(@Nullable String key); @Nullable ArrayList<String> getStringArrayList(@Nullable String key); @Nullable ArrayList<CharSequence> getCharSequenceArrayList(@Nullable String key); @Nullable boolean[] getBooleanArray(@Nullable String key); @Nullable byte[] getByteArray(@Nullable String key); @Nullable short[] getShortArray(@Nullable String key); @Nullable char[] getCharArray(@Nullable String key); @Nullable int[] getIntArray(@Nullable String key); @Nullable long[] getLongArray(@Nullable String key); @Nullable float[] getFloatArray(@Nullable String key); @Nullable double[] getDoubleArray(@Nullable String key); @Nullable String[] getStringArray(@Nullable String key); @Nullable CharSequence[] getCharSequenceArray(@Nullable String key); @Nullable StateBundle getBundle(@Nullable String key); @Nullable T getParcelable(@Nullable String key); @Nullable Parcelable[] getParcelableArray(@Nullable String key); @Nullable ArrayList<T> getParcelableArrayList(@Nullable String key); @Nullable SparseArray<T> getSparseParcelableArray(@Nullable String key); void copyToBundle(@Nonnull Bundle bundle); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final Creator<StateBundle> CREATOR; }