@Test(expected = IllegalArgumentException.class) @SuppressWarnings("unchecked") public void shouldThrowIllegalArgumentExceptionIfDatabaseIsNull() { SQLiteRxCache.newBuilder(String.class, String.class) .setKeyMapper(mock(KeyMapper.class)) .setValueMapper(mock(ValueMapper.class)) .setVersionMapper(mock(VersionMapper.class)) .setExecutor(mock(Executor.class)) .build(); }
public static <K, V> Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType) { return new Builder<K, V>().setKeyType(keyType).setValueType(valueType); }
SQLiteRxCache implements RxCache<K, V> { public static <K, V> Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType) { return new Builder<K, V>().setKeyType(keyType).setValueType(valueType); } }
SQLiteRxCache implements RxCache<K, V> { public static <K, V> Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType) { return new Builder<K, V>().setKeyType(keyType).setValueType(valueType); } private  SQLiteRxCache(Builder<K, V> proto); }
SQLiteRxCache implements RxCache<K, V> { public static <K, V> Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType) { return new Builder<K, V>().setKeyType(keyType).setValueType(valueType); } private  SQLiteRxCache(Builder<K, V> proto); @Override Single<V> get(final K key); @Override Single<Map<K, V>> getAll(final Collection<K> keys); @Override Single<V> put(final K key, V value, long expiry, TimeUnit unit); @Override Single<Map<K, V>> putAll(final Map<K, V> map, final long expiry, final TimeUnit unit); @Override Single<K> remove(K key); @Override Single<Collection<K>> removeAll(final Collection<K> keys); static Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType); }
SQLiteRxCache implements RxCache<K, V> { public static <K, V> Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType) { return new Builder<K, V>().setKeyType(keyType).setValueType(valueType); } private  SQLiteRxCache(Builder<K, V> proto); @Override Single<V> get(final K key); @Override Single<Map<K, V>> getAll(final Collection<K> keys); @Override Single<V> put(final K key, V value, long expiry, TimeUnit unit); @Override Single<Map<K, V>> putAll(final Map<K, V> map, final long expiry, final TimeUnit unit); @Override Single<K> remove(K key); @Override Single<Collection<K>> removeAll(final Collection<K> keys); static Builder<K, V> newBuilder(Class<K> keyType, Class<V> valueType);  }