- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 108 for transform (0.24 sec)
-
android/guava-tests/test/com/google/common/collect/ListsTest.java
List<String> transform = Lists.transform(listIteratorOnlyList, SOME_FUNCTION); assertTrue( Iterables.elementsEqual(transform, Lists.transform(randomAccessList, SOME_FUNCTION))); } private static class ListIterationOnlyList<E> extends ForwardingList<E> { private final List<E> realDelegate; private ListIterationOnlyList(List<E> realDelegate) { this.realDelegate = realDelegate; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/OptionalTest.java
} public void testTransform_absent() { assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity())); assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction())); } public void testTransform_presentIdentity() { assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity())); } public void testTransform_presentToString() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
* * <pre>{@code * ListenableFuture<Boolean> adminIsLoggedIn = * FluentFuture.from(usersDatabase.getAdminUser()) * .transform(User::getId, directExecutor()) * .transform(ActivityService::isLoggedIn, threadPool) * .catching(RpcException.class, e -> false, directExecutor()); * }</pre> * * <h3>Alternatives</h3> * * <h4>Frameworks</h4> *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 11 19:08:44 GMT 2023 - 18.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
List<String> transform = Lists.transform(listIteratorOnlyList, SOME_FUNCTION); assertTrue( Iterables.elementsEqual(transform, Lists.transform(randomAccessList, SOME_FUNCTION))); } private static class ListIterationOnlyList<E> extends ForwardingList<E> { private final List<E> realDelegate; private ListIterationOnlyList(List<E> realDelegate) { this.realDelegate = realDelegate; }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java
return ImmutableMap.copyOf(sourceMap); } }, COPY_OF_ENTRIES { @Override public Map<Object, Object> create(List<?> keys) { return ImmutableMap.copyOf( Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value"))); } }, BUILDER_PUT_ONE_BY_ONE { @Override public Map<Object, Object> create(List<?> keys) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 21:01:39 GMT 2023 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderFactory.java
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 8.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTesting.java
assertThat(transformation.inverse().isVertical()).isFalse(); assertThat(transformation.transform(x1)).isWithin(ALLOWED_ERROR).of(y1); assertThat(transformation.transform(x1 + xDelta)).isWithin(ALLOWED_ERROR).of(y1 + yDelta); assertThat(transformation.inverse().transform(y1)).isWithin(ALLOWED_ERROR).of(x1); assertThat(transformation.inverse().transform(y1 + yDelta)) .isWithin(ALLOWED_ERROR) .of(x1 + xDelta);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 23.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
} public void testTransform_absent() { assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity())); assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction())); } public void testTransform_presentIdentity() { assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity())); } public void testTransform_presentToString() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java
keys -> path.create( Lists.transform( keys, key -> Maps.immutableEntry(key, new Object()))), keys -> path.create( Lists.transform( keys, key -> Maps.immutableEntry(new Object(), key))),
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 21:01:39 GMT 2023 - 4.2K bytes - Viewed (0)