Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for allWrapperTypes (0.19 sec)

  1. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        try {
          primitives.remove(boolean.class);
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testAllWrapperTypes() {
        Set<Class<?>> wrappers = Primitives.allWrapperTypes();
        assertThat(wrappers)
            .containsExactly(
                Boolean.class,
                Byte.class,
                Character.class,
                Double.class,
                Float.class,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/PrimitivesTest.java

        try {
          primitives.remove(boolean.class);
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testAllWrapperTypes() {
        Set<Class<?>> wrappers = Primitives.allWrapperTypes();
        assertThat(wrappers)
            .containsExactly(
                Boolean.class,
                Byte.class,
                Character.class,
                Double.class,
                Float.class,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Primitives.java

        return PRIMITIVE_TO_WRAPPER_TYPE.keySet();
      }
    
      /**
       * Returns an immutable set of all nine primitive-wrapper types (including {@link Void}).
       *
       * @since 3.0
       */
      public static Set<Class<?>> allWrapperTypes() {
        return WRAPPER_TO_PRIMITIVE_TYPE.keySet();
      }
    
      /**
       * Returns {@code true} if {@code type} is one of the nine primitive-wrapper types, such as {@link
       * Integer}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 05 19:04:25 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public <T extends Integer> void testPrimitiveWrappingAndUnwrapping() {
        for (Class<?> type : Primitives.allPrimitiveTypes()) {
          assertIsPrimitive(TypeToken.of(type));
        }
        for (Class<?> type : Primitives.allWrapperTypes()) {
          assertIsWrapper(TypeToken.of(type));
        }
        assertNotPrimitiveNorWrapper(TypeToken.of(String.class));
        assertNotPrimitiveNorWrapper(TypeToken.of(Object[].class));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/TypeToken.java

          Class<T> type = (Class<T>) runtimeType;
          return of(Primitives.wrap(type));
        }
        return this;
      }
    
      private boolean isWrapper() {
        return Primitives.allWrapperTypes().contains(runtimeType);
      }
    
      /**
       * Returns the corresponding primitive type if this is a wrapper type; otherwise returns {@code
       * this} itself. Idempotent.
       *
       * @since 15.0
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      public <T extends Integer> void testPrimitiveWrappingAndUnwrapping() {
        for (Class<?> type : Primitives.allPrimitiveTypes()) {
          assertIsPrimitive(TypeToken.of(type));
        }
        for (Class<?> type : Primitives.allWrapperTypes()) {
          assertIsWrapper(TypeToken.of(type));
        }
        assertNotPrimitiveNorWrapper(TypeToken.of(String.class));
        assertNotPrimitiveNorWrapper(TypeToken.of(Object[].class));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top