- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 476 for given (0.16 sec)
-
android/guava/src/com/google/common/collect/Comparators.java
* @since 30.0 */ public static <T extends Comparable<? super T>> T min(T a, T b) { return (a.compareTo(b) <= 0) ? a : b; } /** * Returns the minimum of the two values, according to the given comparator. If the values compare * as equal, the first is returned. * * <p>The recommended solution for finding the {@code minimum} of some values depends on the type
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 10.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Closeables.java
if (swallowIOException) { logger.log(Level.WARNING, "IOException thrown while closing Closeable.", e); } else { throw e; } } } /** * Closes the given {@link InputStream}, logging any {@code IOException} that's thrown rather than * propagating it. * * <p>While it's not safe in the general case to ignore exceptions that are thrown when closing an
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
* be thread-safe. * * @since 13.0 */ public interface Policy { /** * Called when a potential deadlock is encountered. Implementations can throw the given {@code * exception} and/or execute other desired logic. * * <p>Note that the method will be called even upon an invocation of {@code tryLock()}. Although
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Dec 15 19:31:54 GMT 2023 - 35.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
assertEquals(true, invokeMethod("hasQueuedThread", this)); assertNull(responseQueue.poll()); } /** * Causes this thread to call the named method, and asserts that this thread thereby waits on the * given condition-like object. The lock-like object must have a method equivalent to {@link * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 26 20:07:17 GMT 2023 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
return super.cancel(mayInterruptIfRunning); } } FluentFuture() {} /** * Converts the given {@code ListenableFuture} to an equivalent {@code FluentFuture}. * * <p>If the given {@code ListenableFuture} is already a {@code FluentFuture}, it is returned * directly. If not, it is wrapped in a {@code FluentFuture} that delegates all calls to the
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 11 19:08:44 GMT 2023 - 18.7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractByteHasher.java
/** Updates this hasher with the given byte. */ protected abstract void update(byte b); /** Updates this hasher with the given bytes. */ protected void update(byte[] b) { update(b, 0, b.length); } /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */ protected void update(byte[] b, int off, int len) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jun 15 20:59:00 GMT 2022 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactory.java
/** * Returns the data to expect the source or sink to contain given the data that was used to create * the source or written to the sink. Typically, this will just return the input directly, but in * some cases it may alter the input. For example, if the factory returns a sliced view of a * source created with some given bytes, this method would return a subsequence of the given * (byte[]) data. */ T getExpected(T data);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/HashBiMap.java
*/ private int bucket(int hash) { return hash & (hashTableKToV.length - 1); } /** Given a key, returns the index of the entry in the tables, or ABSENT if not found. */ int findEntryByKey(@CheckForNull Object key) { return findEntryByKey(key, Hashing.smearedHash(key)); } /** * Given a key and its hash, returns the index of the entry in the tables, or ABSENT if not found. */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 06 16:06:58 GMT 2023 - 36.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/SortedSetMultimap.java
* * <p>Because a {@code SortedSetMultimap} has unique sorted values for a given key, this method * returns a {@link SortedSet}, instead of the {@link java.util.Collection} specified in the * {@link Multimap} interface. */ @Override SortedSet<V> get(@ParametricNullness K key); /** * Removes all values associated with a given key. *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Jan 24 17:47:51 GMT 2022 - 5.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A TimeLimiter that runs method calls in the background using an {@link ExecutorService}. If the * time limit expires for a given method call, the thread running the call will be interrupted. * * @author Kevin Bourrillion * @author Jens Nyman * @since 1.0 */ @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jun 27 14:21:11 GMT 2023 - 9.7K bytes - Viewed (0)