Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 150 for CAST (0.03 seconds)

  1. guava/src/com/google/common/reflect/TypeResolver.java

        return Types.newParameterizedTypeWithOwner(
            resolvedOwner, (Class<?>) resolvedRawType, resolvedArgs);
      }
    
      private static <T> T expectArgument(Class<T> type, Object arg) {
        try {
          return type.cast(arg);
        } catch (ClassCastException e) {
          throw new IllegalArgumentException(arg + " is not a " + type.getSimpleName());
        }
      }
    
      /** A TypeTable maintains mapping from {@link TypeVariable} to types. */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 22:30:05 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/TreeRangeMap.java

            return null;
          }
    
          @Override
          public @Nullable V remove(@Nullable Object key) {
            V value = get(key);
            if (value != null) {
              // it's definitely in the map, so the cast and requireNonNull are safe
              @SuppressWarnings("unchecked")
              Range<K> range = (Range<K>) requireNonNull(key);
              TreeRangeMap.this.remove(range);
              return value;
            }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                              f.setAccessible(true);
                              Object x = f.get(null);
                              if (k.isInstance(x)) {
                                return k.cast(x);
                              }
                            }
                            throw new NoSuchFieldError("the Unsafe");
                          });
            } catch (PrivilegedActionException e) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/ImmutableSet.java

           * or ImmutableEnumSet<E> along the way because our own <E> isn't <E extends Enum<E>>.
           *
           * We are also performing a safe covariant cast to change <? extends E> to <E>.
           */
          @SuppressWarnings("unchecked")
          ImmutableSet<E> result = (ImmutableSet<E>) untypedResult;
          return result;
        }
    
        if (elements.isEmpty()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Nov 07 16:09:47 GMT 2025
    - 35.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       * multimap. Keys and values appear in the same order as in this multimap.
       */
      @Override
      @SuppressWarnings("unchecked") // a widening cast
      public ImmutableMap<K, Collection<V>> asMap() {
        return (ImmutableMap) map;
      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        throw new AssertionError("should never be called");
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 27.1K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        if (generated != null) {
          freshness.incrementAndGet();
        }
        return generated;
      }
    
      final <T> @Nullable T generateFresh(Class<T> type) {
        return Primitives.wrap(type).cast(generateFresh(TypeToken.of(type)));
      }
    
      final <T> T newFreshProxy(Class<T> interfaceType) {
        T proxy = newProxy(interfaceType);
        freshness.incrementAndGet();
        return proxy;
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 28.7K bytes
    - Click Count (0)
  7. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                              f.setAccessible(true);
                              Object x = f.get(null);
                              if (k.isInstance(x)) {
                                return k.cast(x);
                              }
                            }
                            throw new NoSuchFieldError("the Unsafe");
                          });
            } catch (PrivilegedActionException e) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 34.8K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                services.forEach((itf, svc) -> injector.bindSupplier((Class<Service>) itf, (Supplier<Service>) svc));
    
                mojo = mojoInterface.cast(injector.getInstance(
                        Key.of(mojoDescriptor.getImplementationClass(), mojoDescriptor.getRoleHint())));
    
            } catch (Exception e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 16:35:21 GMT 2025
    - 46.4K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            if (modelCache != null) {
                Object data = modelCache.get(groupId, artifactId, version, tag.getName());
                if (data != null) {
                    return tag.fromCache(tag.getType().cast(data));
                }
            }
            return null;
        }
    
        private void fireEvent(
                Model model,
                ModelBuildingRequest request,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          for (T element : initialContents) {
            queue.offer(element);
          }
          return queue;
        }
    
        @SuppressWarnings("unchecked") // safe "contravariant cast"
        private <T extends B> Ordering<T> ordering() {
          return Ordering.from((Comparator<T>) comparator);
        }
      }
    
      private final Heap minHeap;
      private final Heap maxHeap;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 33.9K bytes
    - Click Count (0)
Back to Top