Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for stringConverter (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. guava-tests/test/com/google/common/primitives/LongsTest.java

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

        }
    
        @Override
        protected String doBackward(Short value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Shorts.stringConverter()";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Shorts.java

        }
    
        @Override
        protected String doBackward(Short value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Shorts.stringConverter()";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top