- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,625 for lists (0.07 sec)
-
guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java
Object[] array; ArrayList<Object> arrayList; LinkedList<Object> linkedList; @BeforeExperiment void setUp() { array = new Object[size]; arrayList = Lists.newArrayListWithCapacity(size); linkedList = Lists.newLinkedList(); for (int i = 0; i < size; i++) { Object value = new Object(); array[i] = value; arrayList.add(value); linkedList.add(value); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CartesianList.java
private final transient int[] axesSizeProduct; static <E> List<List<E>> create(List<? extends List<? extends E>> lists) { ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size()); for (List<? extends E> list : lists) { List<E> copy = ImmutableList.copyOf(list); if (copy.isEmpty()) { return ImmutableList.of(); } axesBuilder.add(copy); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java
SerializableTester.reserializeAndAssert(map.entrySet()); SerializableTester.reserializeAndAssert(map.keySet()); assertEquals( Lists.newArrayList(map.values()), Lists.newArrayList(SerializableTester.reserialize(map.values()))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Mar 18 18:06:40 UTC 2022 - 4.4K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java
SerializableTester.reserializeAndAssert(map.entrySet()); SerializableTester.reserializeAndAssert(map.keySet()); assertEquals( Lists.newArrayList(map.values()), Lists.newArrayList(SerializableTester.reserialize(map.values()))); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Mar 18 18:06:40 UTC 2022 - 4.4K bytes - Viewed (0) -
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-testlib/src/com/google/common/testing/TearDownStack.java
stack.addFirst(checkNotNull(tearDown)); } } /** Causes teardown to execute. */ public final void runTearDown() { List<Throwable> exceptions = new ArrayList<>(); List<TearDown> stackCopy; synchronized (lock) { stackCopy = Lists.newArrayList(stack); stack.clear(); } for (TearDown tearDown : stackCopy) { try { tearDown.tearDown();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TearDownStack.java
stack.addFirst(checkNotNull(tearDown)); } } /** Causes teardown to execute. */ public final void runTearDown() { List<Throwable> exceptions = new ArrayList<>(); List<TearDown> stackCopy; synchronized (lock) { stackCopy = Lists.newArrayList(stack); stack.clear(); } for (TearDown tearDown : stackCopy) { try { tearDown.tearDown();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
checkNotNull(equalityGroup); List<Object> list = new ArrayList<>(equalityGroup.length); for (int i = 0; i < equalityGroup.length; i++) { Object element = equalityGroup[i]; if (element == null) { throw new NullPointerException("at index " + i); } list.add(element); } equalityGroups.add(list); return this; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 31 19:11:50 UTC 2023 - 6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/CollectionFuture.java
extends CollectionFuture<V, List<@Nullable V>> { ListFuture( ImmutableCollection<? extends ListenableFuture<? extends V>> futures, boolean allMustSucceed) { super(futures, allMustSucceed); init(); } @Override public List<@Nullable V> combine(List<@Nullable Present<V>> values) { List<@Nullable V> result = newArrayListWithCapacity(values.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java
import com.google.common.base.Equivalence; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.testing.RelationshipTester.ItemReporter; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.List; /** * Tester for {@link Equivalence} relationships between groups of objects. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 25 11:57:12 UTC 2023 - 4K bytes - Viewed (0)