Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for TypeToken (0.06 sec)

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

    /**
     * A map, each entry of which maps a {@link TypeToken} to an instance of that type. In addition to
     * implementing {@code Map}, the additional type-safe operations {@link #putInstance} and {@link
     * #getInstance} are available.
     *
     * <p>Generally, implementations don't support {@link #put} and {@link #putAll} because there is no
     * way to check an object at runtime to be an instance of a {@link TypeToken}. Instead, caller
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/TypeToInstanceMap.java

    /**
     * A map, each entry of which maps a {@link TypeToken} to an instance of that type. In addition to
     * implementing {@code Map}, the additional type-safe operations {@link #putInstance} and {@link
     * #getInstance} are available.
     *
     * <p>Generally, implementations don't support {@link #put} and {@link #putAll} because there is no
     * way to check an object at runtime to be an instance of a {@link TypeToken}. Instead, caller
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/TypeParameter.java

    import java.lang.reflect.TypeVariable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Captures a free type variable that can be used in {@link TypeToken#where}. For example:
     *
     * {@snippet :
     * static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }
     *
     * @author Ben Yu
     * @since 12.0
     */
    /*
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeParameter.java

    import java.lang.reflect.TypeVariable;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Captures a free type variable that can be used in {@link TypeToken#where}. For example:
     *
     * {@snippet :
     * static <T> TypeToken<List<T>> listOf(Class<T> elementType) {
     *   return new TypeToken<List<T>>() {}
     *       .where(new TypeParameter<T>() {}, elementType);
     * }
     * }
     *
     * @author Ben Yu
     * @since 12.0
     */
    /*
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/NullPointerTester.java

          return defaultClass;
        }
        if (type.getRawType() == TypeToken.class) {
          // If parameter is TypeToken<? extends Foo>, we return TypeToken<Foo>.
          @SuppressWarnings("unchecked")
          T defaultType = (T) getFirstTypeParameter(type.getType());
          return defaultType;
        }
        if (type.getRawType() == Converter.class) {
          TypeToken<?> convertFromType = type.resolveType(Converter.class.getTypeParameters()[0]);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          return defaultClass;
        }
        if (type.getRawType() == TypeToken.class) {
          // If parameter is TypeToken<? extends Foo>, we return TypeToken<Foo>.
          @SuppressWarnings("unchecked")
          T defaultType = (T) getFirstTypeParameter(type.getType());
          return defaultType;
        }
        if (type.getRawType() == Converter.class) {
          TypeToken<?> convertFromType = type.resolveType(Converter.class.getTypeParameters()[0]);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Parameter.java

          int position,
          TypeToken<?> type,
          Annotation[] annotations,
          @Nullable Object annotatedType) {
        this.declaration = declaration;
        this.position = position;
        this.type = type;
        this.annotations = ImmutableList.copyOf(annotations);
        this.annotatedType = annotatedType;
      }
    
      /** Returns the type of the parameter. */
      public TypeToken<?> getType() {
        return type;
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java

            // This is a class whose supertypes we want to examine. We'll do that below.
          }
          Optional<Class<?>> supersWithPackagePrivateWriteReplace =
              FluentIterable.from(TypeToken.of(clazz).getTypes())
                  .transform(TypeToken::getRawType)
                  .transformAndConcat(c -> asList(c.getDeclaredMethods()))
                  .firstMatch(
                      m ->
                          m.getName().equals("writeReplace")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 03:07:54 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import com.google.gson.Gson
    import com.google.gson.reflect.TypeToken
    import org.gradle.util.GradleVersion
    
    class AcceptedApiChanges {
    
        GradleVersion baseVersion
        Map<ApiChange, String> acceptedChanges
    
        static AcceptedApiChanges parse(List<String> jsonTexts) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindMissingDocumentationFiles.java

    import org.gradle.api.tasks.PathSensitivity;
    import org.gradle.api.tasks.TaskAction;
    
    import com.google.gson.Gson;
    import com.google.gson.annotations.SerializedName;
    import com.google.gson.reflect.TypeToken;
    
    /**
     * A Java class to verify that all .adoc files and their anchors listed in a JSON file exist
     * within a specified directory.
     */
    @CacheableTask
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Aug 21 15:38:58 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top