HomeSort by relevance Sort by last modified time
    Searched defs:supplier (Results 1 - 18 of 18) sorted by null

  /external/guava/guava-tests/test/com/google/common/io/
MultiInputStreamTest.java 49 final InputSupplier<InputStream> supplier = newByteSupplier(0, 50); local
55 throw new IllegalStateException("More than one supplier open");
57 return new FilterInputStream(supplier.getInput()) {
83 InputSupplier<InputStream> supplier = newByteSupplier(0, 10); local
85 InputSupplier<InputStream> joined = ByteStreams.join(supplier, supplier);
MultiReaderTest.java 35 final InputSupplier<Reader> supplier = newReader(testString); local
41 throw new IllegalStateException("More than one supplier open");
43 return new FilterReader(supplier.getInput()) {
58 InputSupplier<Reader> supplier = newReader("a"); local
59 Iterable<? extends InputSupplier<? extends Reader>> list = ImmutableList.of(supplier, supplier);
71 InputSupplier<Reader> supplier = newReader(testString); local
73 Reader joinedReader = CharStreams.join(supplier, supplier).getInput();
108 InputSupplier<Reader> supplier = newReader("a")
    [all...]
FileBackedOutputStreamTest.java 82 InputSupplier<InputStream> supplier = out.getSupplier(); local
90 ByteStreams.newInputStreamSupplier(data, 0, chunk1), supplier)); local
104 // Check that supplier returns the right data
105 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier)));
132 InputSupplier<InputStream> supplier = out.getSupplier(); local
135 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier)));
146 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier)));
153 InputSupplier<InputStream> supplier = out.getSupplier(); local
156 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier)));
159 assertTrue(Arrays.equals(new byte[0], ByteStreams.toByteArray(supplier)));
    [all...]
  /external/guava/guava/src/com/google/common/base/
Functions.java 311 * Returns a function that always returns the result of invoking {@link Supplier#get} on {@code
312 * supplier}, regardless of its input.
317 public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) {
318 return new SupplierFunction<T>(supplier);
324 private final Supplier<T> supplier; field in class:Functions.SupplierFunction
326 private SupplierFunction(Supplier<T> supplier) {
327 this.supplier = checkNotNull(supplier)
    [all...]
Suppliers.java 43 * 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.
49 public static <F, T> Supplier<T> compose(
50 Function<? super F, T> function, Supplier<F> supplier) {
52 Preconditions.checkNotNull(supplier);
59 final Supplier<F> supplier; field in class:Suppliers.SupplierComposition
    [all...]
  /external/junit/src/org/junit/experimental/theories/internal/
Assignments.java 86 ParameterSupplier supplier= getAnnotatedSupplier(unassigned); local
87 if (supplier != null)
88 return supplier;
  /external/guava/guava/src/com/google/common/io/
FileBackedOutputStream.java 45 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;
  /external/guava/guava-tests/test/com/google/common/base/
SuppliersTest.java 45 Supplier<Integer> fiveSupplier = new Supplier<Integer>() {
60 Supplier<Integer> squareSupplier = Suppliers.compose(intValueFunction,
67 Supplier<ArrayList<Integer>> listSupplier
68 = new Supplier<ArrayList<Integer>>() {
85 Supplier<List<Integer>> addSupplier = Suppliers.compose(addElementFunction,
93 static class CountingSupplier implements Supplier<Integer>, Serializable {
105 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier);
111 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier);
118 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier)
271 final Supplier<Boolean> supplier = new Supplier<Boolean>() { local
372 Supplier<Integer> supplier = Suppliers.ofInstance(14); local
    [all...]
FunctionsTest.java 385 implements Supplier<Integer>, Serializable {
411 Supplier<Integer> supplier = new CountingSupplier(); local
412 Function<Object, Integer> function = Functions.forSupplier(supplier);
418 .addEqualityGroup(function, Functions.forSupplier(supplier))
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.eclipse.equinox.security_1.0.200.v20100503.jar 
org.eclipse.osgi_3.6.1.R36x_v20100806.jar 
org.eclipse.osgi_3.6.2.R36x_v20101103.jar 
org.eclipse.equinox.frameworkadmin.equinox_1.0.200.v20100505.jar 
org.eclipse.pde.core_3.6.1.v20100902_r361.jar 
  /prebuilts/tools/common/eclipse/
org.eclipse.osgi_3.6.2.R36x_v20110210.jar 
  /prebuilts/tools/common/guava-tools/
guava-10.0.1.jar 
  /prebuilts/tools/common/jfreechart/
jfreechart-1.0.9.jar 
  /prebuilt/common/tradefed/
tradefed-prebuilt.jar 

Completed in 253 milliseconds