- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,906 for lists (0.14 sec)
-
android/guava-tests/test/com/google/common/io/CharSourceTester.java
public List<String> getResult() { return list; } }); assertExpectedLines(list); } public void testReadLines_withProcessor_stopsOnFalse() throws IOException { List<String> list = source.readLines( new LineProcessor<List<String>>() { List<String> list = Lists.newArrayList(); @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/HttpHeadersTest.java
import com.google.common.base.Splitter; import com.google.common.collect.ImmutableBiMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import java.lang.reflect.Field; import java.util.List; import junit.framework.TestCase; /** * Tests for the HttpHeaders class. * * @author Kurt Alfred Kluever */ public class HttpHeadersTest extends TestCase {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Jan 17 17:41:51 GMT 2023 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HttpHeadersTest.java
import com.google.common.base.Splitter; import com.google.common.collect.ImmutableBiMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import java.lang.reflect.Field; import java.util.List; import junit.framework.TestCase; /** * Tests for the HttpHeaders class. * * @author Kurt Alfred Kluever */ public class HttpHeadersTest extends TestCase {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 22 21:08:08 GMT 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks)); // check idempotency Iterable<?> locks2 = striped.bulkGet(objects); assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2)); } } } /** Checks idempotency, and that we observe the promised number of stripes. */ public void testBasicInvariants() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 8.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java
} return dummy; } @Benchmark int copyArrayList(int reps) { int size = this.size; int dummy = 0; for (int rep = 0; rep < reps; rep++) { List<Object> builder = Lists.newArrayList(); for (int i = 0; i < size; i++) { builder.add(OBJECT); } dummy += ImmutableList.copyOf(builder).size(); } return dummy; } @Benchmark
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue May 15 20:25:06 GMT 2018 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
return ImmutableSet.copyOf(elements); } public void testCreation_allDuplicates() { ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a")); assertTrue(set instanceof SingletonImmutableSet); assertEquals(Lists.newArrayList("a"), Lists.newArrayList(set)); } public void testCreation_oneDuplicate() { // now we'll get the varargs overload ImmutableSet<String> set =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
} private void testHasMapEntriesInOrder(Map<?, ?> map, Object... alternatingKeysAndValues) { List<? extends Entry<?, ?>> entries = Lists.newArrayList(map.entrySet()); List<Object> keys = Lists.newArrayList(map.keySet()); List<Object> values = Lists.newArrayList(map.values()); assertEquals(2 * entries.size(), alternatingKeysAndValues.length);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 09 21:08:15 GMT 2022 - 7.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/AsyncEventBusTest.java
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
PairedStatsAccumulator accumulator = new PairedStatsAccumulator(); List<List<Double>> xPartitions = Lists.partition(xValues, partitionSize); List<List<Double>> yPartitions = Lists.partition(yValues, partitionSize); for (int index = 0; index < xPartitions.size(); index++) { accumulator.addAll(createPairedStatsOf(xPartitions.get(index), yPartitions.get(index))); } return accumulator; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 22.4K bytes - Viewed (0)