- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 106 for BOTH (0.12 sec)
-
guava/src/com/google/common/collect/ImmutableEntry.java
package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import java.io.Serializable; import org.checkerframework.checker.nullness.qual.Nullable; /** * An immutable {@code Map.Entry}, used both by {@link * com.google.common.collect.Maps#immutableEntry(Object, Object)} and by other parts of {@code * common.collect} as a superclass. */ @GwtCompatible(serializable = true) @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Jan 19 21:29:44 GMT 2023 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ExplicitOrdering.java
} ExplicitOrdering(ImmutableMap<T, Integer> rankMap) { this.rankMap = rankMap; } @Override public int compare(T left, T right) { return rank(left) - rank(right); // safe because both are nonnegative } private int rank(T value) { Integer rank = rankMap.get(value); if (rank == null) { throw new IncomparableValueException(value); } return rank; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sun Jun 20 14:22:42 GMT 2021 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Utf8.java
public final class Utf8 { /** * Returns the number of bytes in the UTF-8-encoded form of {@code sequence}. For a string, this * method is equivalent to {@code string.getBytes(UTF_8).length}, but is more efficient in both * time and space. * * @throws IllegalArgumentException if {@code sequence} contains ill-formed UTF-16 (unpaired * surrogates) */ public static int encodedLength(CharSequence sequence) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 10 14:11:51 GMT 2023 - 7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java
@SuppressWarnings("serial") class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<Object, Object>(); // This reference is used both by the GWT compiler to infer the elements // of the lists that needs to be serialized. private ImmutableBiMap<V, K> inverse; @SuppressWarnings("unchecked") // used only for the empty map, which works for any types
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactLinkedHashSet.java
} @Override public void clear() { if (needsAllocArrays()) { return; } this.firstEntry = ENDPOINT; this.lastEntry = ENDPOINT; // Either both arrays are null or neither is, but we check both to satisfy the nullness checker. if (predecessor != null && successor != null) { Arrays.fill(predecessor, 0, size(), 0); Arrays.fill(successor, 0, size(), 0); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Feb 05 21:38:59 GMT 2024 - 9.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListTester.java
/* * Previously we had a field named list that was initialized to the value of * collection in setUp(), but that caused problems when a tester changed the * value of list or collection but not both. */ protected final List<E> getList() { return (List<E>) collection; } /** * {@inheritDoc} * * <p>The {@code AbstractListTester} implementation overrides {@link
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
SettableFuture<?> unused = SettableFuture.create(); // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation // cause system property. This allows us to run with both settings of the property in one jvm // without resorting to even crazier hacks to reset static final boolean fields. System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMapEntry.java
* to the provided {@code standardEquals} method. * * <p>Each of the {@code standard} methods, where appropriate, use {@link Objects#equal} to test * equality for both keys and values. This may not be the desired behavior for map implementations * that use non-standard notions of key equality, such as the entry of a {@code SortedMap} whose * comparator is not consistent with {@code equals}. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Mar 19 19:28:11 GMT 2024 - 4.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java
final String concurrentPackage = SettableFuture.class.getPackage().getName(); ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader(); // we delegate to the current classloader so both loaders agree on classes like TestCase return new URLClassLoader(ClassPathUtil.getClassPathUrls(), classLoader) { @Override public Class<?> loadClass(String name) throws ClassNotFoundException {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java
* whether our solution scales to use with multiple exception types and to whether it is affected * by other {@code ClassValue} users. Some of the benchmarked implementations don't use one or * both of these mechanisms, so they will be unaffected. */ @Param({"0", "1", "12"}) int otherEntriesInDataStructure; final List<ClassValue<?>> retainedReferencesToOtherClassValues = newArrayList();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Mar 22 03:01:34 GMT 2022 - 6.5K bytes - Viewed (0)