- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 289 for ordering (0.04 sec)
-
guava-testlib/src/com/google/common/collect/testing/TestContainerGenerator.java
/** * Helper method to create an array of the appropriate type used by this generator. The returned * array will contain only nulls. */ E[] createArray(int length); /** * Returns the iteration ordering of elements, given the order in which they were added to the * container. This method may return the original list unchanged, the original list modified in * place, or a different list. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java
protected abstract Multiset<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ /* * While the current implementation returns `this`, that's not something we mean to guarantee. * Callers of TestContainerGenerator.order need to be prepared for implementations to return a new * collection.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 19:03:19 UTC 2025 - 2.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ArrayTable.java
* or its views. The {@link #erase} and {@link #eraseAll} methods may be used instead. * * <p>The ordering of the row and column keys provided when the table is constructed determines the * iteration ordering across rows and columns in the table's views. None of the view iterators * support {@link Iterator#remove}. If the table is modified after an iterator is created, the
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 19:39:21 UTC 2025 - 26.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedHashMultimap.java
/** * {@inheritDoc} * * <p>If {@code values} is not empty and the multimap already contains a mapping for {@code key}, * the {@code keySet()} ordering is unchanged. However, the provided values always come last in * the {@link #entries()} and {@link #values()} iteration orderings. */ @CanIgnoreReturnValue @Override public Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
import java.util.TreeMap; import java.util.TreeSet; import org.jspecify.annotations.Nullable; /** * An immutable builder for {@link Multimap} instances, letting you independently select the desired * behaviors (for example, ordering) of the backing map and value-collections. Example: * * {@snippet : * ListMultimap<UserId, ErrorResponse> errorsByUser = * MultimapBuilder.linkedHashKeys().arrayListValues().build();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
guava/src/com/google/common/collect/MultimapBuilder.java
import java.util.TreeMap; import java.util.TreeSet; import org.jspecify.annotations.Nullable; /** * An immutable builder for {@link Multimap} instances, letting you independently select the desired * behaviors (for example, ordering) of the backing map and value-collections. Example: * * {@snippet : * ListMultimap<UserId, ErrorResponse> errorsByUser = * MultimapBuilder.linkedHashKeys().arrayListValues().build();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 18K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java
C filtered = filter(createUnfiltered(contents), EVEN); try { Integer first = filtered.first(); assertFalse(filtered.isEmpty()); assertEquals(Ordering.natural().min(filtered), first); } catch (NoSuchElementException e) { assertTrue(filtered.isEmpty()); } } } public void testLast() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 13.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* service changes state. The listener will not have previous state changes replayed, so it is * suggested that listeners are added before the service starts. * * <p>{@code addListener} guarantees execution ordering across calls to a given listener but not * across calls to multiple listeners. Specifically, a given listener will have its callbacks
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 10.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
* * @author Alexei Stolboushkin * @author Sverre Sundsdal */ @GwtCompatible @NullMarked public class MinMaxPriorityQueueTest extends TestCase { private static final Ordering<Integer> SOME_COMPARATOR = Ordering.<Integer>natural().reverse(); @J2ktIncompatible @GwtIncompatible // suite @AndroidIncompatible // test-suite builders public static Test suite() { TestSuite suite = new TestSuite();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
putEdge(N2, N1); assertThat(graph.outDegree(N1)).isEqualTo(3); } // Stable order tests // Note: Stable order means that the ordering doesn't change between iterations and versions. // Ideally, the ordering in test should never be updated. @Test public void stableIncidentEdgeOrder_edges_returnsInStableOrder() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 12.7K bytes - Viewed (0)