- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 308 for orderings (0.06 seconds)
-
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
public boolean intersects(Range<C> otherRange) { int ceilingIndex = SortedLists.binarySearch( ranges, Range::lowerBound, otherRange.lowerBound, Ordering.natural(), ANY_PRESENT, NEXT_HIGHER); if (ceilingIndex < ranges.size() && ranges.get(ceilingIndex).isConnected(otherRange)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java
@Nullable private transient Comparator<? super E> comparator; @Override public Comparator<? super E> comparator() { Comparator<? super E> result = comparator; if (result == null) { return comparator = Ordering.from(forwardMultiset().comparator()).reverse(); } return result; } @Nullable private transient SortedSet<E> elementSet; @Override public SortedSet<E> elementSet() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 4K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java
} protected abstract Set<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.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/ModelUtils.java
import org.apache.maven.model.Plugin; import org.apache.maven.model.PluginContainer; /** @deprecated */ @Deprecated public final class ModelUtils { /** * This should be the resulting ordering of plugins after merging: * <p> * Given: * <pre> * parent: X -> A -> B -> D -> E * child: Y -> A -> C -> D -> F * </pre> * Result: * <pre>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java
ProjectDependencyGraphStub.B // weight=2, ID contains "B" ); projects.sort(comparator.getComparator()); // Both have same weight (2), so ordering should be by project ID // Project B should come before C alphabetically by project ID assertEquals( ProjectDependencyGraphStub.B, projects.get(0),
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Aug 06 12:03:40 GMT 2025 - 8.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/DescendingMultiset.java
@LazyInit private transient @Nullable Comparator<? super E> comparator; @Override public Comparator<? super E> comparator() { Comparator<? super E> result = comparator; if (result == null) { result = Ordering.from(forwardMultiset().comparator()).reverse(); comparator = result; } return result; } @LazyInit private transient @Nullable NavigableSet<E> elementSet; @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 4.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
private static final long[] zeroCumulativeCounts = {0}; static final ImmutableSortedMultiset<?> NATURAL_EMPTY_MULTISET = new RegularImmutableSortedMultiset<>(Ordering.natural()); @VisibleForTesting final transient RegularImmutableSortedSet<E> elementSet; private final transient long[] cumulativeCounts; private final transient int offset; private final transient int length;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 4.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/FluentIterable.java
* Returns an {@code ImmutableList} containing all of the elements from this {@code * FluentIterable} in the order specified by {@code comparator}. To produce an {@code * ImmutableList} sorted by its natural ordering, use {@code toSortedList(Ordering.natural())}. * * <p><b>{@code Stream} equivalent:</b> pass {@link ImmutableList#toImmutableList} to {@code * stream.sorted(comparator).collect()}. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 34.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/DescendingImmutableSortedSet.java
*/ @GwtIncompatible final class DescendingImmutableSortedSet<E> extends ImmutableSortedSet<E> { private final ImmutableSortedSet<E> forward; DescendingImmutableSortedSet(ImmutableSortedSet<E> forward) { super(Ordering.from(forward.comparator()).reverse()); this.forward = forward; } @Override public boolean contains(@Nullable Object object) { return forward.contains(object); } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java
private final SortedSet<String> delegate = Sets.newTreeSet(Ordering.natural()); @Override protected SortedSet<String> delegate() { return delegate; } } private static class NonNavigableSortedMap extends ForwardingSortedMap<String, String> { private final SortedMap<String, String> delegate = new SafeTreeMap<>(Ordering.natural()); @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 32.4K bytes - Click Count (0)