Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for Raw (0.25 sec)

  1. android/guava/src/com/google/common/reflect/Types.java

        return new ParameterizedTypeImpl(
            ClassOwnership.JVM_BEHAVIOR.getOwnerType(rawType), rawType, arguments);
      }
    
      /** Decides what owner type to use for constructing {@link ParameterizedType} from a raw class. */
      private enum ClassOwnership {
        OWNED_BY_ENCLOSING_CLASS {
          @Override
          @CheckForNull
          Class<?> getOwnerType(Class<?> rawType) {
            return rawType.getEnclosingClass();
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Striped64.java

       * contention levels will recur, so the cells will eventually be
       * needed again; and for short-lived ones, it does not matter.
       */
    
      /**
       * Padded variant of AtomicLong supporting only raw accesses plus CAS. The value field is placed
       * between pads, hoping that the JVM doesn't reorder them.
       *
       * <p>JVM intrinsics note: It would be possible to use a release-only form of CAS here, if it were
       * provided.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertEquals(ImmutableList.of("a", "b", "c"), ImmutableList.copyOf(result));
      }
    
      public void testStaticMethod_returningRawType() throws Exception {
        @SuppressWarnings("rawtypes") // the purpose is to test raw type
        Invokable<?, Iterable> delegate =
            Prepender.method("prepend", String.class, Iterable.class).returning(Iterable.class);
        assertEquals(new TypeToken<Iterable<String>>() {}, delegate.getReturnType());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

       *
       * <ul>
       *   <li>exactly of the given type, including generic type parameters, such as {@code
       *       ImmutableList<String>};
       *   <li>of the raw type;
       *   <li>null if no value can be generated.
       * </ul>
       */
      final @Nullable Object generateFresh(TypeToken<?> type) {
        Object generated = generate(type);
        if (generated != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

              return new TypeCapture<T>() {}.capture();
            }
          };
        }
      }
    
      public void testResolveType_parameterizedType() {
        @SuppressWarnings("rawtypes") // trying to test raw type
        Parameterized<?, ?, ?> parameterized =
            new Parameterized<TypeTokenResolutionTest, Bar, String>() {};
        TypeResolver typeResolver = TypeResolver.covariantly(parameterized.getClass());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeBasedTable.java

      }
    
      /**
       * Creates an empty {@code TreeBasedTable} that uses the natural orderings of both row and column
       * keys.
       *
       * <p>The method signature specifies {@code R extends Comparable} with a raw {@link Comparable},
       * instead of {@code R extends Comparable<? super R>}, and the same for {@code C}. That's
       * necessary to support classes defined without generics.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      // We use the rawtypeToWildcard "cast" to make the test work with J2KT in other tests. Leaving one
      // test without that cast to verify that using the raw Comparable works outside J2KT.
      @J2ktIncompatible // J2KT's translation of raw Comparable is not a supertype of Int translation
      public void testCreation_expectedSize() {
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.expectedSize(8).create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

          TestMultimapGenerator<K, V, M> generator) {
        return new MultimapTestSuiteBuilder<K, V, M>().usingGenerator(generator);
      }
    
      // Class parameters must be raw.
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
        return ImmutableList.<Class<? extends AbstractTester>>of(
            MultimapAsMapGetTester.class,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top