Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IdentityConverter (0.08 sec)

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

            return "backward";
          }
        };
      }
    
      public void testSerialization_identity() {
        Converter<String, String> identityConverter = Converter.identity();
        SerializableTester.reserializeAndAssert(identityConverter);
      }
    
      public void testSerialization_reverse() {
        Converter<Long, String> reverseConverter = Longs.stringConverter().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

        return (IdentityConverter<T>) IdentityConverter.INSTANCE;
      }
    
      /**
       * A converter that always converts or reverses an object to itself. Note that T is now a
       * "pass-through type".
       */
      private static final class IdentityConverter<T> extends Converter<T, T> implements Serializable {
        static final Converter<?, ?> INSTANCE = new IdentityConverter<>();
    
        @Override
    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