- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for StringConverter (0.1 sec)
-
android/guava/src/com/google/common/base/Enums.java
public static <T extends Enum<T>> Converter<String, T> stringConverter(Class<T> enumClass) { return new StringConverter<>(enumClass); } @GwtIncompatible private static final class StringConverter<T extends Enum<T>> extends Converter<String, T> implements Serializable { private final Class<T> enumClass; StringConverter(Class<T> enumClass) { this.enumClass = checkNotNull(enumClass);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 26 11:56:44 UTC 2023 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
public void testStringConverter_toString() { assertEquals( "Enums.stringConverter(com.google.common.base.EnumsTest$TestEnum.class)", Enums.stringConverter(TestEnum.class).toString()); } @GwtIncompatible // stringConverter public void testStringConverter_serialization() { SerializableTester.reserializeAndAssert(Enums.stringConverter(TestEnum.class)); } @J2ktIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Enums.java
public static <T extends Enum<T>> Converter<String, T> stringConverter(Class<T> enumClass) { return new StringConverter<>(enumClass); } @GwtIncompatible private static final class StringConverter<T extends Enum<T>> extends Converter<String, T> implements Serializable { private final Class<T> enumClass; StringConverter(Class<T> enumClass) { this.enumClass = checkNotNull(enumClass);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 26 11:56:44 UTC 2023 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/base/CaseFormat.java
public Converter<String, String> converterTo(CaseFormat targetFormat) { return new StringConverter(this, targetFormat); } private static final class StringConverter extends Converter<String, String> implements Serializable { private final CaseFormat sourceFormat; private final CaseFormat targetFormat; StringConverter(CaseFormat sourceFormat, CaseFormat targetFormat) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 19 20:20:14 UTC 2022 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
Converter<Long, String> reverseConverter = Longs.stringConverter().reverse(); SerializableTester.reserializeAndAssert(reverseConverter); } @GwtIncompatible // J2CL generics problem public void testSerialization_andThen() { Converter<String, Long> converterA = Longs.stringConverter(); 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) -
guava/src/com/google/common/base/CaseFormat.java
public Converter<String, String> converterTo(CaseFormat targetFormat) { return new StringConverter(this, targetFormat); } private static final class StringConverter extends Converter<String, String> implements Serializable { private final CaseFormat sourceFormat; private final CaseFormat targetFormat; StringConverter(CaseFormat sourceFormat, CaseFormat targetFormat) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 19 20:20:14 UTC 2022 - 6.3K bytes - Viewed (0)