Searched defs:supplier (Results 1 - 14 of 14) sorted by relevance

/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
H A DCacheLoader.java102 public static <V> CacheLoader<Object, V> from(Supplier<V> supplier) { argument
103 return new SupplierToCacheLoader<V>(supplier);
/external/guava/guava/src/com/google/common/cache/
H A DCacheLoader.java129 public static <V> CacheLoader<Object, V> from(Supplier<V> supplier) { argument
130 return new SupplierToCacheLoader<V>(supplier);
/external/guava/guava/src/com/google/common/io/
H A DFileBackedOutputStream.java45 private final InputSupplier<InputStream> supplier; field in class:FileBackedOutputStream
97 supplier = new InputSupplier<InputStream>() {
112 supplier = new InputSupplier<InputStream>() {
122 * Returns a supplier that may be used to retrieve the data buffered
126 return supplier;
H A DCharStreams.java118 * object from the given supplier.
121 * @param to the output supplier
168 * Opens a {@link Readable} object from the supplier, copies all characters
230 * @param supplier the factory to read from
235 InputSupplier<R> supplier) throws IOException {
236 return toStringBuilder(supplier).toString();
257 * @param supplier the factory to read from
261 InputSupplier<R> supplier) throws IOException {
263 R r = supplier.getInput();
278 * @param supplier th
234 toString( InputSupplier<R> supplier) argument
260 toStringBuilder( InputSupplier<R> supplier) argument
282 readFirstLine( InputSupplier<R> supplier) argument
304 readLines( InputSupplier<R> supplier) argument
350 readLines( InputSupplier<R> supplier, LineProcessor<T> callback) argument
[all...]
H A DByteStreams.java85 * Writes a byte array to an output stream from the given supplier.
88 * @param to the output supplier
133 * Opens an input stream from the supplier, copies all bytes from the
156 * Opens an output stream from the supplier, copies all bytes from the input
243 * @param supplier the factory
247 InputSupplier<? extends InputStream> supplier) throws IOException {
249 InputStream in = supplier.getInput();
572 public static long length(InputSupplier<? extends InputStream> supplier) argument
576 InputStream in = supplier.getInput();
696 * @param supplier th
246 toByteArray( InputSupplier<? extends InputStream> supplier) argument
701 readBytes(InputSupplier<? extends InputStream> supplier, ByteProcessor<T> processor) argument
731 getChecksum(InputSupplier<? extends InputStream> supplier, final Checksum checksum) argument
759 getDigest(InputSupplier<? extends InputStream> supplier, final MessageDigest md) argument
826 slice( final InputSupplier<? extends InputStream> supplier, final long offset, final long length) argument
[all...]
/external/guava/guava/src/com/google/common/base/
H A DFunctions.java312 * supplier}, regardless of its input.
317 public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) { argument
318 return new SupplierFunction<T>(supplier);
324 private final Supplier<T> supplier; field in class:Functions.SupplierFunction
326 private SupplierFunction(Supplier<T> supplier) { argument
327 this.supplier = checkNotNull(supplier);
331 return supplier.get();
337 return this.supplier.equals(that.supplier);
[all...]
H A DOptional.java127 * Returns the contained instance if it is present; {@code supplier.get()} otherwise. If the
128 * supplier returns {@code null}, a {@link NullPointerException} will be thrown.
130 * @throws NullPointerException if the supplier returns {@code null}
132 public abstract T or(Supplier<? extends T> supplier); argument
223 @Override public T or(Supplier<? extends T> supplier) { argument
224 checkNotNull(supplier);
275 @Override public Object or(Supplier<?> supplier) { argument
276 return checkNotNull(supplier.get(),
H A DSuppliers.java43 * Returns a new supplier which is the composition of the provided function
44 * and supplier. In other words, the new supplier's value will be computed by
45 * retrieving the value from {@code supplier}, and then applying
46 * {@code function} to that value. Note that the resulting supplier will not
47 * call {@code supplier} or invoke {@code function} until it is called.
50 Function<? super F, T> function, Supplier<F> supplier) {
52 Preconditions.checkNotNull(supplier);
53 return new SupplierComposition<F, T>(function, supplier);
59 final Supplier<F> supplier; field in class:Suppliers.SupplierComposition
49 compose( Function<? super F, T> function, Supplier<F> supplier) argument
61 SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) argument
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.equinox.security_1.0.200.v20100503.jar ... .core.runtime.IConfigurationElement element Throwable e String supplier String message } org/eclipse/equinox/internal/security/auth/ConfigurationFederator. ...
H A Dorg.eclipse.osgi_3.6.1.R36x_v20100806.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.osgi_3.6.2.R36x_v20101103.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.equinox.frameworkadmin.equinox_1.0.200.v20100505.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.pde.core_3.6.1.v20100902_r361.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
/external/robolectric/lib/main/
H A Djunit-dep-4.8.2.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...

Completed in 256 milliseconds