- Sort Score
- Result 10 results
- Languages All
Results 701 - 710 of 1,961 for isobject (0.05 sec)
-
Present.java
L76: function.apply(reference), L77: "the Function passed to Optional.transform() must not return null.")); L78: } L79: L80: @Override L81: public boolean equals(@CheckForNull Object object) { L82: if (object instanceof Present) { L83: Present<?> other = (Present<?>) object; L84: return reference.equals(other.reference); L85: } L86: return false; L87: } L88: L89: @Override L90: public int hashCode() { L91: return 0x598df91c + reference.hashCode(); L92:...github.com/google/guava/guava/src/com/google/co...Fri Oct 01 17:18:04 UTC 2021 2.4K bytes -
ReflectionTest.java
testNewProxyCantWorkOnAClass() throws Exception { L44: assertThrows( L45: IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER)); L46: } L47: L48: private static final InvocationHandler X_RETURNER = L49: new InvocationHandler() { L50: @Override L51: public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { L52: return "x"; L53: } L54: }; L55: L56: private static int classesInitialized = 0; L57:...github.com/google/guava/guava-tests/test/com/go...Wed Sep 06 17:04:31 UTC 2023 2.7K bytes -
CaseInsensitiveMap.java
etKey()), entry.getValue()); L72: } L73: } L74: L75: @Override L76: public final V remove(final Object key) { L77: return super.remove(convertKey(key)); L78: } L79: L80: @Override L81: public boolean containsKey(final Object key) { L82: return super.containsKey(convertKey(key)); L83: } L84: L85: private static String convertKey(final Object key) { L86: return key.toString().toLowerCase(); L87: } L88: L89:}...github.com/codelibs/corelib/src/main/java/org/c...Thu Mar 07 01:59:08 UTC 2024 2.3K bytes -
MapDifference.java
entriesDiffering(); L64: L65: /** L66: * Compares the specified object with this instance for equality. Returns {@code true} if the L67: * given object is also a {@code MapDifference} and the values returned by the {@link L68: * #entriesOnlyOnLeft()}, {@link #entriesOnlyOnRight()}, {@link #entriesInCommon()} and {@link L69: * #entriesDiffering()} of the two instances are equal. L70: */ L71: @Override L72: boolean equals(@CheckForNull Object object); L73: L74: /** L75: * Returns the hash code for...github.com/google/guava/guava/src/com/google/co...Wed Aug 04 13:28:27 UTC 2021 3.5K bytes -
TreeMultimap.java
} or L41: * {@link Comparator#compare} instead of {@link Object#equals} to determine equivalence of L42: * instances. L43: * L44: * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as L45: * explained by the {@link Comparable} class specification. Otherwise, the resulting multiset will L46: * violate the general contract of {@link SetMultimap}, which is specified in terms of {@link L47: * Object#equals}. L48: * L49: * <p>The collections returned by {@code...github.com/google/guava/guava/src/com/google/co...Sat Mar 09 00:21:17 UTC 2024 8.7K bytes -
GeneralRange.java
relative to the specified comparator. */ L62: static <T extends @Nullable Object> GeneralRange<T> all(Comparator<? super T> comparator) { L63: return new GeneralRange<>(comparator, false, null, OPEN, false, null, OPEN); L64: } L65: L66: /** L67: * Returns everything above the endpoint relative to the specified comparator, with the specified L68: * endpoint behavior. L69: */ L70: static <T extends @Nullable Object> GeneralRange<T> downTo( L71: Comparator<? super T> comparator, @ParametricNullness...github.com/google/guava/guava/src/com/google/co...Thu Feb 22 21:19:52 UTC 2024 10.8K bytes -
SearchLogHelper.java
{ L446: try { L447: final Map<String, Object> source = toSource(event); L448: searchLogLogger.info(objectMapper.writeValueAsString(source)); L449: } catch (final JsonProcessingException e) { L450: logger.warn("Failed to write {}", event, e); L451: } L452: } L453: L454: protected Map<String, Object> toSource(final SearchLogEvent searchLogEvent) { L455: final Map<String, Object> source = toLowerHyphen(searchLogEvent.toSource()); L456:...github.com/codelibs/fess/src/main/java/org/code...Mon Jul 22 02:07:37 UTC 2024 21.7K bytes -
MapMakerInternalMap.java
L2693: L2694: @Override L2695: public V getValue() { L2696: return value; L2697: } L2698: L2699: @Override L2700: public boolean equals(@CheckForNull Object object) { L2701: // Cannot use key and value equivalence L2702: if (object instanceof Entry) { L2703: Entry<?, ?> that = (Entry<?, ?>) object; L2704: return key.equals(that.getKey()) && value.equals(that.getValue()); L2705: } L2706: return false; L2707: } L2708: L2709: @Override L2710:...github.com/google/guava/android/guava/src/com/g...Fri Oct 18 20:24:49 UTC 2024 90.8K bytes -
AndroidLog.kt
level.intValue() == Level.INFO.intValue() -> Log.INFO L35: else -> Log.DEBUG L36: } L37: L38:object AndroidLogHandler : Handler() { L39: override fun publish(record: LogRecord) { L40: androidLog(record.loggerName, record.androidLevel, record.message, record.thrown) L41: } L42: L43: override fun flush() { L44: } L45: L46: override fun close() { L47: } L48:} L49: L50:@SuppressSignatureCheck L51:object AndroidLog { L52: private const val MAX_LOG_LENGTH = 4000 L53: L54: // Keep references to...github.com/square/okhttp/okhttp/src/main/kotlin...Mon Jan 08 01:13:22 UTC 2024 3.9K bytes -
RegularImmutableSortedMultiset.java
return isEmpty() ? null : getEntry(0); L75: } L76: L77: @Override L78: @CheckForNull L79: public Entry<E> lastEntry() { L80: return isEmpty() ? null : getEntry(length - 1); L81: } L82: L83: @Override L84: public int count(@CheckForNull Object element) { L85: int index = elementSet.indexOf(element); L86: return (index >= 0) ? getCount(index) : 0; L87: } L88: L89: @Override L90: public int size() { L91: long size = cumulativeCounts[offset + length] - cumulativeCounts[offset];...github.com/google/guava/android/guava/src/com/g...Mon Apr 01 16:15:01 UTC 2024 4.3K bytes