程序包 cn.taketoday.core.conversion.support
@NonNullApi
@NonNullFields
package cn.taketoday.core.conversion.support
Default implementation of the type conversion system.
-
类说明A
ConditionalConverterbase implementation for enum-based converters.Converts an array to another array.Converts an array to a Collection.Converts an array to an Object by returning the first array element after converting it to the desired target type.Converts an array to a comma-delimited String.Converts aByteBufferdirectly to and frombyte[] ByteBufferdirectly to and frombyte[]sand indirectly to any type that theConversionServicesupport viabyte[].Converts from a Character to any JDK-standard Number implementation.CharacterToNumberFactory.CharacterToNumber<T extends Number>Converts a Collection to an array.Converts from a Collection to another Collection.Converts a Collection to an Object by returning the first collection element after converting it to the desired targetType.Converts a Collection to a comma-delimited String.Configuration interface to be implemented by most if not allConversionServicetypes.Internal utilities for the conversion package.Adapter that exposes aPropertyEditorfor any givenConversionServiceand specific target type.A specialization ofGenericConversionServiceconfigured by default with converters appropriate for most environments.CallsEnum.ordinal()to convert a source Enum to a Integer.CallsEnum.name()to convert a source Enum to a String.Simply callsObject.toString()to convert any supported object to aString.BaseConversionServiceimplementation suitable for use in most environments.Key for use with the converter cache.Manages all converters registered with the service.Manages converters registered with a specificGenericConverter.ConvertiblePair.Internal converter that performs no operation.Converts an entity identifier to a entity reference by calling a static finder method on the target entity type.Converts from a Integer to aEnumby callingClass.getEnumConstants().IntegerToEnumConverterFactory.IntegerToEnum<T extends Enum>Converts a Map to another Map.Converts from any JDK-standard Number implementation to a Character.Converts from any JDK-standard Number implementation to any other JDK-standard Number implementation.Converts an Object to a single-element array containing the Object.Converts an Object to a single-element Collection containing the Object.Generic converter that uses conventions to convert a source object to atargetTypeby delegating to a method on the source object or to a static factory method or constructor on thetargetType.Convert an Object tojava.util.Optional<T>if necessary using theConversionServiceto convert the source Object to the generic type of Optional when known.Simply callsObject.toString()to convert a source Object to a String.Converts from a Properties to a String by callingProperties.store(java.io.OutputStream, String).Converts aStreamto and from a collection or array, converting the element type if necessary.Converts a comma-delimited String to an Array.Converts String to a Boolean.Converts a String to a Character.Convert a String to aCharset.Converts a comma-delimited String to a Collection.Convert a String to aCurrency.Converts from a String to aEnumby callingEnum.valueOf(Class, String).StringToEnumConverterFactory.StringToEnum<T extends Enum>Converts from a String to aLocale.Converts from a String any JDK-standard Number implementation.Converts from a String to aPattern.Converts a String to a Properties by calling Properties#load(java.io.InputStream).Convert a String to aTimeZone.Converts from a String to aUUID.Simple converter from Java 8'sZonedDateTimetoCalendar.