Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for doBackward (0.06 sec)

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

     *   <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);
     *     }
     *
     *     protected Integer doBackward(String s) {
     *       return parseUnsignedInt(s, 16);
     *     }
    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

          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
            public String toString() {
              return "string2long";
            }
          };
    
    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

          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
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof StringConverter) {
    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

          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
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof StringConverter) {
    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

        }
    
        @Override
        protected String doForward(String s) {
          return sourceFormat.to(targetFormat, s);
        }
    
        @Override
        protected String doBackward(String s) {
          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof StringConverter) {
    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

        }
    
        @Override
        protected String doForward(String s) {
          return sourceFormat.to(targetFormat, s);
        }
    
        @Override
        protected String doBackward(String s) {
          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof StringConverter) {
    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

        @Override
        protected Short doForward(String value) {
          return Short.decode(value);
        }
    
        @Override
        protected String doBackward(Short value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Shorts.stringConverter()";
        }
    
        private Object readResolve() {
    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

        @Override
        protected Short doForward(String value) {
          return Short.decode(value);
        }
    
        @Override
        protected String doBackward(Short value) {
          return value.toString();
        }
    
        @Override
        public String toString() {
          return "Shorts.stringConverter()";
        }
    
        private Object readResolve() {
    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

        return new Converter<F, T>() {
          @Override
          protected T doForward(F a) {
            return doConvert(convertToType);
          }
    
          @Override
          protected F doBackward(T b) {
            return doConvert(convertFromType);
          }
    
          private /*static*/ <S> S doConvert(TypeToken<S> type) {
            return checkNotNull(getDefaultValue(type));
          }
        };
      }
    
    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

        return new Converter<F, T>() {
          @Override
          protected T doForward(F a) {
            return doConvert(convertToType);
          }
    
          @Override
          protected F doBackward(T b) {
            return doConvert(convertFromType);
          }
    
          private /*static*/ <S> S doConvert(TypeToken<S> type) {
            return checkNotNull(getDefaultValue(type));
          }
        };
      }
    
    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