- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for unsafeCompare (0.22 sec)
-
guava/src/com/google/common/collect/ForwardingSortedMap.java
super(ForwardingSortedMap.this); } } // unsafe, but worst case is a CCE or NPE is thrown, which callers will be expecting @SuppressWarnings({"unchecked", "nullness"}) static int unsafeCompare( @CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) { if (comparator == null) { return ((Comparable<@Nullable Object>) o1).compareTo(o2); } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingSortedMap.java
super(ForwardingSortedMap.this); } } // unsafe, but worst case is a CCE or NPE is thrown, which callers will be expecting @SuppressWarnings({"unchecked", "nullness"}) static int unsafeCompare( @CheckForNull Comparator<?> comparator, @CheckForNull Object o1, @CheckForNull Object o2) { if (comparator == null) { return ((Comparable<@Nullable Object>) o1).compareTo(o2); } else {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedSet.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect; import static com.google.common.collect.ForwardingSortedMap.unsafeCompare; import com.google.common.annotations.GwtCompatible; import java.util.Comparator; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.SortedSet;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularContiguousSet.java
return intersectionInCurrentDomain(Range.upTo(toElement, BoundType.forBoolean(inclusive))); } @Override @SuppressWarnings("unchecked") // TODO(cpovirk): Use a shared unsafeCompare method. ContiguousSet<C> subSetImpl( C fromElement, boolean fromInclusive, C toElement, boolean toInclusive) { if (fromElement.compareTo(toElement) == 0 && !fromInclusive && !toInclusive) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 8.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableSortedSet.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedSet.java
return new RegularImmutableSortedSet<>( ImmutableList.asImmutableList(elements, n), comparator); } } } int unsafeCompare(Object a, @CheckForNull Object b) { return unsafeCompare(comparator, a, b); } static int unsafeCompare(Comparator<?> comparator, Object a, @CheckForNull Object b) { // Pretend the comparator can compare anything. If it turns out it can't
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 39.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
this.forceCopy = true; return result; } } int unsafeCompare(Object a, @CheckForNull Object b) { return unsafeCompare(comparator, a, b); } static int unsafeCompare(Comparator<?> comparator, Object a, @CheckForNull Object b) { // Pretend the comparator can compare anything. If it turns out it can't
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.9K bytes - Viewed (0)