- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 233 for compose (0.71 sec)
-
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
AtomicDouble.class); } @SuppressWarnings("unchecked") // functor classes have no type parameters public void testGet_functors() { assertEquals(0, ArbitraryInstances.get(Comparator.class).compare("abc", 123)); assertTrue(ArbitraryInstances.get(Predicate.class).apply("abc")); assertTrue(ArbitraryInstances.get(Equivalence.class).equivalent(1, 1));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 22.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
buffer[bufferSize++] = elem; // uncheckedCastNullableTToT is safe because bufferSize > 0. if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) { threshold = elem; } // uncheckedCastNullableTToT is safe because bufferSize > 0. } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) { // Otherwise, we can ignore elem; we've seen k better elements.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 11.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java
@Override public int compare(K o1, K o2) { return ((Comparable) o1).compareTo(o2); } }; } Iterator<Entry<K, V>> entryItr = navigableMap.entrySet().iterator(); Entry<K, V> prevEntry = entryItr.next(); while (entryItr.hasNext()) { Entry<K, V> nextEntry = entryItr.next(); assertTrue(comparator.compare(prevEntry.getKey(), nextEntry.getKey()) < 0);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/base/Internal.java
* a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair. */ @SuppressWarnings({ // We use this method only for cases in which we need to decompose to primitives. "GoodTime-ApiWithNumericTimeUnit", "GoodTime-DecomposeToPrimitive", // We use this method only from within APIs that require a Duration. "Java7ApiChecker", }) @IgnoreJRERequirement
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jan 11 14:30:06 UTC 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
* * @since 21.0 */ @CanIgnoreReturnValue public long updateAndGet(K key, LongUnaryOperator updaterFunction) { checkNotNull(updaterFunction); Long result = map.compute( key, (k, value) -> updaterFunction.applyAsLong((value == null) ? 0L : value.longValue())); return requireNonNull(result); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 11.8K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Ints.java
* Integer#compare} method instead. * * @param a the first {@code int} to compare * @param b the second {@code int} to compare * @return a negative value if {@code a} is less than {@code b}; a positive value if {@code a} is * greater than {@code b}; or zero if they are equal */ public static int compare(int a, int b) { return (a < b) ? -1 : ((a > b) ? 1 : 0);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 29.9K bytes - Viewed (0) -
guava/src/com/google/common/math/IntMath.java
* Returns {@code b} to the {@code k}th power. Even if the result overflows, it will be equal to * {@code BigInteger.valueOf(b).pow(k).intValue()}. This implementation runs in {@code O(log k)} * time. * * <p>Compare {@link #checkedPow}, which throws an {@link ArithmeticException} upon overflow. * * @throws IllegalArgumentException if {@code k < 0} */ @GwtIncompatible // failing tests
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 23.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ContiguousSet.java
} @Override public ContiguousSet<C> subSet(C fromElement, C toElement) { checkNotNull(fromElement); checkNotNull(toElement); checkArgument(comparator().compare(fromElement, toElement) <= 0); return subSetImpl(fromElement, true, toElement, false); } /** @since 12.0 */ @GwtIncompatible // NavigableSet @Override public ContiguousSet<C> subSet(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 9.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
E auntElement = elementData(auntIndex); if (ordering.compare(auntElement, parentElement) < 0) { parentIndex = auntIndex; parentElement = auntElement; } } } if (ordering.compare(parentElement, x) < 0) { queue[index] = parentElement; queue[parentIndex] = x; return parentIndex;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 34K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Collections2.java
* Section 7.2.1.2. The iteration order follows the lexicographical order. This means that the * first permutation will be in ascending order, and the last will be in descending order. * * <p>Elements that compare equal are considered equal and no new permutations are created by * swapping them. * * <p>An empty iterable has only one permutation, which is an empty list. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 22.8K bytes - Viewed (0)