@Test public void testSize_hasArguments() { Data data = new Data.Builder().putBoolean(KEY1, true).build(); assertThat(data.size(), is(1)); }
@VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public int size() { return mValues.size(); }
Data { @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public int size() { return mValues.size(); } }
Data { @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public int size() { return mValues.size(); } Data();  Data(@NonNull Data other);   Data(@NonNull Map<String, ?> values); }
Data { @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public int size() { return mValues.size(); } Data();  Data(@NonNull Data other);   Data(@NonNull Map<String, ?> values); boolean getBoolean(@NonNull String key, boolean defaultValue); @Nullable boolean[] getBooleanArray(@NonNull String key); byte getByte(@NonNull String key, byte defaultValue); @Nullable byte[] getByteArray(@NonNull String key); int getInt(@NonNull String key, int defaultValue); @Nullable int[] getIntArray(@NonNull String key); long getLong(@NonNull String key, long defaultValue); @Nullable long[] getLongArray(@NonNull String key); float getFloat(@NonNull String key, float defaultValue); @Nullable float[] getFloatArray(@NonNull String key); double getDouble(@NonNull String key, double defaultValue); @Nullable double[] getDoubleArray(@NonNull String key); @Nullable String getString(@NonNull String key); @Nullable String[] getStringArray(@NonNull String key); @NonNull Map<String, Object> getKeyValueMap(); @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) int size(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @TypeConverter static @NonNull byte[] toByteArray(@NonNull Data data); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @TypeConverter static @NonNull Data fromByteArray(@NonNull byte[] bytes); @Override boolean equals(Object o); @Override int hashCode(); }
Data { @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public int size() { return mValues.size(); } Data();  Data(@NonNull Data other);   Data(@NonNull Map<String, ?> values); boolean getBoolean(@NonNull String key, boolean defaultValue); @Nullable boolean[] getBooleanArray(@NonNull String key); byte getByte(@NonNull String key, byte defaultValue); @Nullable byte[] getByteArray(@NonNull String key); int getInt(@NonNull String key, int defaultValue); @Nullable int[] getIntArray(@NonNull String key); long getLong(@NonNull String key, long defaultValue); @Nullable long[] getLongArray(@NonNull String key); float getFloat(@NonNull String key, float defaultValue); @Nullable float[] getFloatArray(@NonNull String key); double getDouble(@NonNull String key, double defaultValue); @Nullable double[] getDoubleArray(@NonNull String key); @Nullable String getString(@NonNull String key); @Nullable String[] getStringArray(@NonNull String key); @NonNull Map<String, Object> getKeyValueMap(); @VisibleForTesting @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) int size(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @TypeConverter static @NonNull byte[] toByteArray(@NonNull Data data); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @TypeConverter static @NonNull Data fromByteArray(@NonNull byte[] bytes); @Override boolean equals(Object o); @Override int hashCode(); static final Data EMPTY; static final int MAX_DATA_BYTES; }