Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for StringConverter (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/base/Converter.java

     * example round-trip using {@link com.google.common.primitives.Doubles#stringConverter}:
     *
     * <ol>
     *   <li>{@code stringConverter().convert("1.00")} returns the {@code Double} value {@code 1.0}
     *   <li>{@code stringConverter().reverse().convert(1.0)} returns the string {@code "1.0"} --
     *       <i>not</i> the same string ({@code "1.00"}) we started with
     * </ol>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. 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)
  9. 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. android/guava/src/com/google/common/primitives/Ints.java

        }
    
        @Override
        protected String doBackward(Integer value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Ints.stringConverter()";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top