Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReverseConverter (0.21 sec)

  1. android/guava-tests/test/com/google/common/base/ConverterTest.java

        Converter<Long, String> reverseConverter = STR_TO_LONG.reverse();
    
        assertEquals(STR_VAL, reverseConverter.convert(LONG_VAL));
        assertEquals(LONG_VAL, reverseConverter.reverse().convert(STR_VAL));
    
        Iterable<String> convertedValues = reverseConverter.convertAll(LONGS);
        assertEquals(STRINGS, ImmutableList.copyOf(convertedValues));
    
        assertSame(STR_TO_LONG, reverseConverter.reverse());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 01 16:09:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Converter.java

      public Converter<B, A> reverse() {
        Converter<B, A> result = reverse;
        return (result == null) ? reverse = new ReverseConverter<>(this) : result;
      }
    
      private static final class ReverseConverter<A, B> extends Converter<B, A>
          implements Serializable {
        final Converter<A, B> original;
    
        ReverseConverter(Converter<A, B> original) {
          this.original = original;
        }
    
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top