Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for stringConverter (0.31 sec)

  1. android/guava/src/com/google/common/base/Enums.java

      public static <T extends Enum<T>> Converter<String, T> stringConverter(Class<T> enumClass) {
        return new StringConverter<>(enumClass);
      }
    
      @GwtIncompatible
      private static final class StringConverter<T extends Enum<T>> extends Converter<String, T>
          implements Serializable {
    
        private final Class<T> enumClass;
    
        StringConverter(Class<T> enumClass) {
          this.enumClass = checkNotNull(enumClass);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/EnumsTest.java

      public void testStringConverter_toString() {
        assertEquals(
            "Enums.stringConverter(com.google.common.base.EnumsTest$TestEnum.class)",
            Enums.stringConverter(TestEnum.class).toString());
      }
    
      @GwtIncompatible // stringConverter
      public void testStringConverter_serialization() {
        SerializableTester.reserializeAndAssert(Enums.stringConverter(TestEnum.class));
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Enums.java

      public static <T extends Enum<T>> Converter<String, T> stringConverter(Class<T> enumClass) {
        return new StringConverter<>(enumClass);
      }
    
      @GwtIncompatible
      private static final class StringConverter<T extends Enum<T>> extends Converter<String, T>
          implements Serializable {
    
        private final Class<T> enumClass;
    
        StringConverter(Class<T> enumClass) {
          this.enumClass = checkNotNull(enumClass);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/CaseFormat.java

      public Converter<String, String> converterTo(CaseFormat targetFormat) {
        return new StringConverter(this, targetFormat);
      }
    
      private static final class StringConverter extends Converter<String, String>
          implements Serializable {
    
        private final CaseFormat sourceFormat;
        private final CaseFormat targetFormat;
    
        StringConverter(CaseFormat sourceFormat, CaseFormat targetFormat) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/ConverterTest.java

        Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
        SerializableTester.reserializeAndAssert(reverseConverter);
      }
    
      @GwtIncompatible // J2CL generics problem
      public void testSerialization_andThen() {
        Converter<String, Long> converterA = Longs.stringConverter();
        Converter<Long, String> reverseConverter = Longs.stringConverter().reverse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CaseFormat.java

      public Converter<String, String> converterTo(CaseFormat targetFormat) {
        return new StringConverter(this, targetFormat);
      }
    
      private static final class StringConverter extends Converter<String, String>
          implements Serializable {
    
        private final CaseFormat sourceFormat;
        private final CaseFormat targetFormat;
    
        StringConverter(CaseFormat sourceFormat, CaseFormat targetFormat) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testStringConverter_convertError() {
        assertThrows(
            NumberFormatException.class, () -> Doubles.stringConverter().convert("notanumber"));
      }
    
      public void testStringConverter_nullConversions() {
        assertThat(Doubles.stringConverter().convert(null)).isNull();
        assertThat(Doubles.stringConverter().reverse().convert(null)).isNull();
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      }
    
      public void testStringConverter_convertError() {
        assertThrows(NumberFormatException.class, () -> Floats.stringConverter().convert("notanumber"));
      }
    
      public void testStringConverter_nullConversions() {
        assertThat(Floats.stringConverter().convert(null)).isNull();
        assertThat(Floats.stringConverter().reverse().convert(null)).isNull();
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      public void testStringConverter_nullConversions() {
        assertThat(Ints.stringConverter().convert(null)).isNull();
        assertThat(Ints.stringConverter().reverse().convert(null)).isNull();
      }
    
      public void testStringConverter_reverse() {
        Converter<String, Integer> converter = Ints.stringConverter();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testStringConverter_convertError() {
        assertThrows(
            NumberFormatException.class, () -> Doubles.stringConverter().convert("notanumber"));
      }
    
      public void testStringConverter_nullConversions() {
        assertThat(Doubles.stringConverter().convert(null)).isNull();
        assertThat(Doubles.stringConverter().reverse().convert(null)).isNull();
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
Back to top