Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 1,460 for instanceOf (0.29 seconds)

  1. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
            return newMap;
          }
        },
        MapMakerStrongKeysWeakValues {
          @Override
          public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) {
            ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap();
            checkState(newMap instanceof MapMakerInternalMap);
            newMap.putAll(map);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/reflect/TypeCapture.java

     *
     * @author Ben Yu
     */
    abstract class TypeCapture<T> {
    
      /** Returns the captured type. */
      final Type capture() {
        Type superclass = getClass().getGenericSuperclass();
        checkArgument(superclass instanceof ParameterizedType, "%s isn't parameterized", superclass);
        return ((ParameterizedType) superclass).getActualTypeArguments()[0];
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  3. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

                        String fullPath = currentPath + "/" + field.getName();
    
                        if (value instanceof String strValue) {
                            recordString(fullPath, strValue);
                            globalStringFrequency.merge(strValue, 1, Integer::sum);
                        } else if (value instanceof List<?> list) {
                            for (Object item : list) {
                                if (item != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Maps.java

        if (!(o instanceof Entry)) {
          return false;
        }
        return c.remove(unmodifiableEntry((Entry<?, ?>) o));
      }
    
      /** An implementation of {@link Map#equals}. */
      static boolean equalsImpl(Map<?, ?> map, @Nullable Object object) {
        if (map == object) {
          return true;
        } else if (object instanceof Map) {
          Map<?, ?> o = (Map<?, ?>) object;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 157.6K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Maps.java

        if (!(o instanceof Entry)) {
          return false;
        }
        return c.remove(unmodifiableEntry((Entry<?, ?>) o));
      }
    
      /** An implementation of {@link Map#equals}. */
      static boolean equalsImpl(Map<?, ?> map, @Nullable Object object) {
        if (map == object) {
          return true;
        } else if (object instanceof Map) {
          Map<?, ?> o = (Map<?, ?>) object;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 163.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/TreeRangeMap.java

       *
       * @since 33.4.0
       */
      @SuppressWarnings("unchecked")
      public static <K extends Comparable<?>, V> TreeRangeMap<K, V> copyOf(
          RangeMap<K, ? extends V> rangeMap) {
        if (rangeMap instanceof TreeRangeMap) {
          NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound = Maps.newTreeMap();
          entriesByLowerBound.putAll(((TreeRangeMap<K, V>) rangeMap).entriesByLowerBound);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  7. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
          X instance = newFromConstructor(constructor, cause);
          if (instance != null) {
            if (instance.getCause() == null) {
              instance.initCause(cause);
            }
            return instance;
          }
        }
        throw new IllegalArgumentException(
            "No appropriate constructor for exception of type "
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/eventbus/Subscriber.java

        return (31 + method.hashCode()) * 31 + System.identityHashCode(target);
      }
    
      @Override
      public final boolean equals(@Nullable Object obj) {
        if (obj instanceof Subscriber) {
          Subscriber that = (Subscriber) obj;
          // Use == so that different equal instances will still receive events.
          // We only guard against the case that the same object is registered
          // multiple times
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       * future is {@linkplain Future#isDone() done}.
       *
       * <p>Prefer to create {@code ListenableFuture} instances with {@link SettableFuture}, {@link
       * MoreExecutors#listeningDecorator( java.util.concurrent.ExecutorService)}, {@link
       * ListenableFutureTask}, {@link AbstractFuture}, and other utilities over creating plain {@code
       * Future} instances to be upgraded to {@code ListenableFuture} after the fact.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

         */
        private ManagedVersionMap getManagedVersionsMap(
                Artifact originatingArtifact, Map<String, Artifact> managedVersions) {
            ManagedVersionMap versionMap;
            if (managedVersions instanceof ManagedVersionMap managedVersionMap) {
                versionMap = managedVersionMap;
            } else {
                versionMap = new ManagedVersionMap(managedVersions);
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 36.5K bytes
    - Click Count (0)
Back to Top