- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 1,875 for isobject (0.13 sec)
-
Callables.java
L33:@ElementTypesAreNonnullByDefault L34:public final class Callables { L35: private Callables() {} L36: L37: /** Creates a {@code Callable} which immediately returns a preset value each time it is called. */ L38: public static <T extends @Nullable Object> Callable<T> returning(@ParametricNullness T value) { L39: return () -> value; L40: } L41: L42: /** L43: * Creates an {@link AsyncCallable} from a {@link Callable}. L44: * L45: * <p>The {@link AsyncCallable} returns the {@link ListenableFuture}...github.com/google/guava/android/guava/src/com/g...Fri May 12 18:32:03 UTC 2023 4.4K bytes -
ListenableFutureTask.java
{@link L39: * MoreExecutors#listeningDecorator}. L40: * L41: * @author Sven Mawson L42: * @since 1.0 L43: */ L44:@J2ktIncompatible L45:@GwtIncompatible L46:@ElementTypesAreNonnullByDefault L47:public class ListenableFutureTask<V extends @Nullable Object> extends FutureTask<V> L48: implements ListenableFuture<V> { L49: // TODO(cpovirk): explore ways of making ListenableFutureTask final. There are some valid reasons L50: // such as BoundedQueueExecutorService to allow extends but it would be nice...github.com/google/guava/guava/src/com/google/co...Tue Apr 04 09:45:04 UTC 2023 4.3K bytes -
TlsVersion.kt
@JvmName("-deprecated_javaName") L33: @Deprecated( L34: message = "moved to val", L35: replaceWith = ReplaceWith(expression = "javaName"), L36: level = DeprecationLevel.ERROR, L37: ) L38: fun javaName(): String = javaName L39: L40: companion object { L41: @JvmStatic L42: fun forJavaName(javaName: String): TlsVersion { L43: return when (javaName) { L44: "TLSv1.3" -> TLS_1_3 L45: "TLSv1.2" -> TLS_1_2 L46: "TLSv1.1" -> TLS_1_1 L47: "TLSv1" -> TLS_1_0 L48:...github.com/square/okhttp/okhttp/src/main/kotlin...Mon Jan 08 01:13:22 UTC 2024 1.5K bytes -
BadWordTests.java
ITEM_ENDPOINT_SUFFIX; L58: } L59: L60: @Override L61: protected Map<String, Object> createTestParam(int id) { L62: final Map<String, Object> requestBody = new HashMap<>(); L63: final String keyProp = NAME_PREFIX + id; L64: requestBody.put(KEY_PROPERTY, keyProp); L65: return requestBody; L66: } L67: L68: @Override L69: protected Map<String, Object> getUpdateMap() { L70: final Map<String, Object> updateMap = new HashMap<>(); L71: updateMap.put(KEY_PROPERTY,...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 2.2K bytes -
ExplicitOrdering.java
L45: if (rank == null) { L46: throw new IncomparableValueException(value); L47: } L48: return rank; L49: } L50: L51: @Override L52: public boolean equals(@CheckForNull Object object) { L53: if (object instanceof ExplicitOrdering) { L54: ExplicitOrdering<?> that = (ExplicitOrdering<?>) object; L55: return this.rankMap.equals(that.rankMap); L56: } L57: return false; L58: } L59: L60: @Override L61: public int hashCode() { L62: return rankMap.hashCode(); L63:...github.com/google/guava/android/guava/src/com/g...Sun Jun 20 14:22:42 UTC 2021 2K bytes -
ExplicitOrdering.java
L45: if (rank == null) { L46: throw new IncomparableValueException(value); L47: } L48: return rank; L49: } L50: L51: @Override L52: public boolean equals(@CheckForNull Object object) { L53: if (object instanceof ExplicitOrdering) { L54: ExplicitOrdering<?> that = (ExplicitOrdering<?>) object; L55: return this.rankMap.equals(that.rankMap); L56: } L57: return false; L58: } L59: L60: @Override L61: public int hashCode() { L62: return rankMap.hashCode(); L63:...github.com/google/guava/guava/src/com/google/co...Sun Jun 20 14:22:42 UTC 2021 2K bytes -
TestThread.java
TestThread} instances are instantiated in a L36: * test with reference to the same "lock-like object", and then their interactions with that object L37: * are choreographed via the various methods on this class. L38: * L39: * <p>A "lock-like object" is really any object that may be used for concurrency control. If the L40: * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a L41: * method equivalent to {@link java.util.concurrent.locks.ReentrantLock#hasQ...github.com/google/guava/android/guava-tests/tes...Fri Oct 18 22:10:29 UTC 2024 10.7K bytes -
MapIteratorCache.java
clearCache(); L69: return backingMap.put(key, value); L70: } L71: L72: @CanIgnoreReturnValue L73: @CheckForNull L74: final V remove(Object key) { L75: checkNotNull(key); L76: clearCache(); L77: return backingMap.remove(key); L78: } L79: L80: final void clear() { L81: clearCache(); L82: backingMap.clear(); L83: } L84: L85: @CheckForNull L86: V get(Object key) { L87: checkNotNull(key); L88: V value = getIfCached(key); L89: // TODO(b/192579700): Use a ternary once it no longer...github.com/google/guava/guava/src/com/google/co...Wed Oct 06 00:47:57 UTC 2021 4.7K bytes -
EqualsTester.java
assertTrue(item + " must not be Object#equals to null", !item.equals(null)); L143: assertTrue( L144: item + " must not be Object#equals to an arbitrary object of another class", L145: !item.equals(NotAnInstance.EQUAL_TO_NOTHING)); L146: assertTrue(item + " must be Object#equals to itself", item.equals(item)); L147: assertEquals( L148: "the Object#hashCode of " + item + " must be consistent", L149: item.hashCode(), L150: item.hashCode()); L151: if...github.com/google/guava/guava-testlib/src/com/g...Tue Oct 31 19:11:50 UTC 2023 6K bytes -
Verify.java
custom message otherwise. L443: * L444: * <p>See {@link #verify(boolean, String, Object...)} for details. L445: * L446: * @since 23.1 (varargs overload since 17.0) L447: */ L448: public static void verify( L449: boolean expression, L450: String errorMessageTemplate, L451: @CheckForNull Object p1, L452: @CheckForNull Object p2, L453: @CheckForNull Object p3, L454: @CheckForNull Object p4) { L455: if (!expression) { L456: throw new VerifyException(lenient...github.com/google/guava/guava/src/com/google/co...Mon May 17 14:07:47 UTC 2021 18.5K bytes