@Nullable public Object getCachedValue(Object cachedValueInputs) { return mComponentTree.getCachedValue(cachedValueInputs); }
@Test public void testCachedValues() { ComponentTree componentTree = ComponentTree.create(mContext, mComponent).build(); assertThat(componentTree.getCachedValue("key1")).isNull(); componentTree.putCachedValue("key1", "value1"); assertThat(componentTree.getCachedValue("key1")).isEqualTo("value1"); assertThat(componentTree.getCachedValue("key2")).isNull(); }