Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for doForward (0.05 sec)

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

     *       Stream.map}).
     *   <li><b>Do not</b> call {@link #doForward} or {@link #doBackward} directly; these exist only to
     *       be overridden.
     * </ul>
     *
     * <h3>Example</h3>
     *
     * <pre>
     *   return new Converter&lt;Integer, String&gt;() {
     *     protected String doForward(Integer i) {
     *       return Integer.toHexString(i);
     *     }
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ConverterTest.java

    @GwtCompatible(emulated = true)
    public class ConverterTest extends TestCase {
    
      private static final Converter<String, Long> STR_TO_LONG =
          new Converter<String, Long>() {
            @Override
            protected Long doForward(String object) {
              return Long.valueOf(object);
            }
    
            @Override
            protected String doBackward(Long object) {
              return String.valueOf(object);
            }
    
            @Override
    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/src/com/google/common/base/Enums.java

          implements Serializable {
    
        private final Class<T> enumClass;
    
        StringConverter(Class<T> enumClass) {
          this.enumClass = checkNotNull(enumClass);
        }
    
        @Override
        protected T doForward(String value) {
          return Enum.valueOf(enumClass, value);
        }
    
        @Override
        protected String doBackward(T enumValue) {
          return enumValue.name();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Enums.java

          implements Serializable {
    
        private final Class<T> enumClass;
    
        StringConverter(Class<T> enumClass) {
          this.enumClass = checkNotNull(enumClass);
        }
    
        @Override
        protected T doForward(String value) {
          return Enum.valueOf(enumClass, value);
        }
    
        @Override
        protected String doBackward(T enumValue) {
          return enumValue.name();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/CaseFormat.java

          this.sourceFormat = checkNotNull(sourceFormat);
          this.targetFormat = checkNotNull(targetFormat);
        }
    
        @Override
        protected String doForward(String s) {
          return sourceFormat.to(targetFormat, s);
        }
    
        @Override
        protected String doBackward(String s) {
          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/CaseFormat.java

          this.sourceFormat = checkNotNull(sourceFormat);
          this.targetFormat = checkNotNull(targetFormat);
        }
    
        @Override
        protected String doForward(String s) {
          return sourceFormat.to(targetFormat, s);
        }
    
        @Override
        protected String doBackward(String s) {
          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
    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/src/com/google/common/primitives/Shorts.java

      private static final class ShortConverter extends Converter<String, Short>
          implements Serializable {
        static final Converter<String, Short> INSTANCE = new ShortConverter();
    
        @Override
        protected Short doForward(String value) {
          return Short.decode(value);
        }
    
        @Override
        protected String doBackward(Short value) {
          return value.toString();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Shorts.java

      private static final class ShortConverter extends Converter<String, Short>
          implements Serializable {
        static final Converter<String, Short> INSTANCE = new ShortConverter();
    
        @Override
        protected Short doForward(String value) {
          return Short.decode(value);
        }
    
        @Override
        protected String doBackward(Short value) {
          return value.toString();
        }
    
        @Override
    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. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private <F, T> Converter<F, T> defaultConverter(
          final TypeToken<F> convertFromType, final TypeToken<T> convertToType) {
        return new Converter<F, T>() {
          @Override
          protected T doForward(F a) {
            return doConvert(convertToType);
          }
    
          @Override
          protected F doBackward(T b) {
            return doConvert(convertFromType);
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      private <F, T> Converter<F, T> defaultConverter(
          final TypeToken<F> convertFromType, final TypeToken<T> convertToType) {
        return new Converter<F, T>() {
          @Override
          protected T doForward(F a) {
            return doConvert(convertToType);
          }
    
          @Override
          protected F doBackward(T b) {
            return doConvert(convertFromType);
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top