- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 447 for instanceOf (0.17 sec)
-
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
if (cause instanceof Error) { throw new ExecutionError((Error) cause); } else if (cause instanceof RuntimeException) { throw new UncheckedExecutionException(cause); } else { throw new ExecutionException(cause); } } private void wrapAndThrowRuntimeExecutionExceptionOrError(Throwable cause) { if (cause instanceof Error) {
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) -
android/guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
assertTrue(multimap.keySet() instanceof SortedSet); assertTrue(multimap.asMap() instanceof SortedMap); } public void testTreeKeys_gwtCompatible() { ListMultimap<String, Integer> multimap = rawtypeToWildcard(MultimapBuilder.treeKeys()).arrayListValues().<String, Integer>build(); assertTrue(multimap.keySet() instanceof SortedSet); assertTrue(multimap.asMap() instanceof SortedMap);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 27 09:26:07 GMT 2024 - 5.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumBiMap.java
this.valueTypeOrObjectUnderJ2cl = valueTypeOrObjectUnderJ2cl; } static <K extends Enum<K>> Class<K> inferKeyTypeOrObjectUnderJ2cl(Map<K, ?> map) { if (map instanceof EnumBiMap) { return ((EnumBiMap<K, ?>) map).keyTypeOrObjectUnderJ2cl; } if (map instanceof EnumHashBiMap) { return ((EnumHashBiMap<K, ?>) map).keyTypeOrObjectUnderJ2cl; } checkArgument(!map.isEmpty());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Aug 24 01:40:03 GMT 2023 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LenientSerializableTester.java
assertEquals(original, copy); assertTrue(copy instanceof ImmutableSet); return copy; } @CanIgnoreReturnValue @GwtIncompatible // SerializableTester static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) { Multiset<E> copy = reserialize(original); assertEquals(original, copy); assertTrue(copy instanceof ImmutableMultiset); return copy; }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Aug 04 15:33:27 GMT 2020 - 2.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedMultimapTest.java
delegate.put("foo", 1); delegate.put("foo", 3); ListMultimap<String, Integer> multimap = Multimaps.synchronizedListMultimap(delegate); assertTrue(multimap.get("foo") instanceof RandomAccess); assertTrue(multimap.get("bar") instanceof RandomAccess); } public void testSynchronizedLinkedListMultimapRandomAccess() { ListMultimap<String, Integer> delegate = LinkedListMultimap.create();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed May 09 15:17:25 GMT 2018 - 8.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSortedSetMultimap.java
Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); } } @Override Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) { if (collection instanceof NavigableSet) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Tue Jun 15 21:08:00 GMT 2021 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java
Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); } } @Override Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) { if (collection instanceof NavigableSet) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 15 21:08:00 GMT 2021 - 5.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
return (other instanceof ClassWhichIsAlwaysEqualButHasDifferentHashcodes); } } private static class ObjectWhichIsEqualButChangesClass implements Serializable { private static final long serialVersionUID = 1L; @Override public boolean equals(@Nullable Object other) { return (other instanceof ObjectWhichIsEqualButChangesClass || other instanceof OtherForm); } @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 15:49:06 GMT 2023 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java
public void testGetRandomAccess() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 1); multimap.put("foo", 3); assertTrue(multimap.get("foo") instanceof RandomAccess); assertTrue(multimap.get("bar") instanceof RandomAccess); } /** Confirm that removeAll() returns a List implementing RandomAccess. */ public void testRemoveAllRandomAccess() { Multimap<String, Integer> multimap = create();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 6.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java
public int hashCode() { // delegate to 's' return s.hashCode(); } @Override public boolean equals(@Nullable Object other) { if (other == null) { return false; } else if (other instanceof BaseComparable) { return s.equals(((BaseComparable) other).s); } else { return false; } } @Override public int compareTo(BaseComparable o) { return s.compareTo(o.s); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Apr 20 11:19:03 GMT 2023 - 1.5K bytes - Viewed (0)