- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,625 for lists (0.04 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
List<String> list = Lists.newArrayList(elements); list.add("zzz"); return ImmutableSortedSet.copyOf(list).headSet("zzy"); } } public static class ImmutableSortedSetTailsetGenerator extends TestStringSortedSetGenerator { @Override protected SortedSet<String> create(String[] elements) { List<String> list = Lists.newArrayList(elements); list.add("\0");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
public void testAll() { List<String> list = Lists.newArrayList(); Predicate<String> predicate = equalTo("cool"); assertTrue(all(list.iterator(), predicate)); list.add("cool"); assertTrue(all(list.iterator(), predicate)); list.add("pants"); assertFalse(all(list.iterator(), predicate)); } public void testFind_firstElement() { Iterable<String> list = Lists.newArrayList("cool", "pants");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K 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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.3K bytes - Viewed (0) -
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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
assertTrue(multimap().asMap().remove(key) instanceof List); } } @CollectionSize.Require(SEVERAL) public void testEquals() { resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3())); Map<K, Collection<V>> expected = Maps.newHashMap(); expected.put(k0(), Lists.newArrayList(v0(), v3())); expected.put(k1(), Lists.newArrayList(v0()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
public void testAll() { List<String> list = Lists.newArrayList(); Predicate<String> predicate = equalTo("cool"); assertTrue(all(list.iterator(), predicate)); list.add("cool"); assertTrue(all(list.iterator(), predicate)); list.add("pants"); assertFalse(all(list.iterator(), predicate)); } public void testFind_firstElement() { Iterable<String> list = Lists.newArrayList("cool", "pants");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/outside/NeitherAbstractNorAnnotatedInSuperclassTest.java
import com.google.common.collect.Lists; import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.outside.NeitherAbstractNorAnnotatedInSuperclassTest.SubClass; import java.util.List; public class NeitherAbstractNorAnnotatedInSuperclassTest extends AbstractEventBusTest<SubClass> { static class SuperClass { final List<Object> neitherOverriddenNorAnnotatedEvents = Lists.newArrayList();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 08 21:35:40 UTC 2022 - 2.5K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
import static com.google.common.collect.Lists.newArrayList; import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE; import static java.util.Collections.emptyList; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 10.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/outside/DeepInterfaceTest.java
final List<Object> annotatedIn1Events = Lists.newArrayList(); final List<Object> annotatedIn1And2Events = Lists.newArrayList(); final List<Object> annotatedIn1And2AndClassEvents = Lists.newArrayList(); final List<Object> declaredIn1AnnotatedIn2Events = Lists.newArrayList(); final List<Object> declaredIn1AnnotatedInClassEvents = Lists.newArrayList();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 08 21:35:40 UTC 2022 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/PeekingIteratorTest.java
List<Integer> list = emptyList(); Iterator<Integer> iterator = peekingIterator(new ThrowsAtEndIterator<Integer>(list)); assertNextThrows(iterator); /* Checks the case where a later element throws an exception. */ list = Lists.newArrayList(1, 2); iterator = peekingIterator(new ThrowsAtEndIterator<Integer>(list)); assertTrue(iterator.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 8.6K bytes - Viewed (0)