Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for StringConverter (0.08 sec)

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

        }
    
        @Override
        protected String doBackward(Float value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Floats.stringConverter()";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Doubles.java

        }
    
        @Override
        protected String doBackward(Double value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Doubles.stringConverter()";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Floats.java

        }
    
        @Override
        protected String doBackward(Float value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Floats.stringConverter()";
        }
    
        private Object readResolve() {
          return INSTANCE;
        }
    
        private static final long serialVersionUID = 1;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Doubles.java

        }
    
        @Override
        protected String doBackward(Double value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Doubles.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
    - 28.1K bytes
    - Viewed (0)
Back to top