Interface Converter<From,​To>

Type Parameters:
From - Source type
To - Destination type
All Superinterfaces:
Broadcaster, Listener, NamedObject, Receiver<Transmittable>, Repeater, Transceiver, Transmitter<Transmittable>
All Known Subinterfaces:
StringConverter<Value>, TwoWayConverter<From,​To>
All Known Implementing Classes:
AttachmentConverter, AttachmentListConverter, BaseCollectionConverter, BaseConverter, BaseFormattedConverter, BaseFormattedLocalTimeConverter, BaseListConverter, BaseSetConverter, BaseStringConverter, BodyConverter, BooleanConverter, Bytes.Converter, ClassConverter, Confidence.Converter, Count.Converter, DateTimeConverter, Deployment.Converter, DoubleConverter, Duration.Converter, Duration.MillisecondsConverter, Duration.SecondsConverter, EmailAddress.Converter, EmailAddressConverter, EmailAddressSetConverter, EnumConverter, EnumListConverter, EnumSetConverter, File.Converter, FileList.Converter, FilePath.Converter, FloatConverter, Folder.Converter, FolderList.Converter, FormattedDoubleConverter, FormattedIntegerConverter, FormattedLongConverter, Frequency.Converter, HexadecimalLongConverter, Host.Converter, HttpDateTimeConverter, HttpNetworkLocation.Converter, HumanizedLocalDateTimeConverter, Identifier.Converter, IdentityConverter, IntegerConverter, IntegerIdentifier.Converter, IsoLocalDateTimeConverter, LanguageIsoCode.Converter, Level.Converter, LocalDateConverter, LocalDateTimeConverter, LocalDateTimeWithMillisecondsConverter, LocalDateTimeWithSecondsConverter, LocalTimeConverter, LongConverter, Maximum.Converter, Minimum.Converter, NetworkLocation.Converter, NetworkPath.Converter, PatternConverter, Percent.Converter, PlainTextPassword.Converter, Port.Converter, Port.ListConverter, Quantizable.Converter, Resource.Converter, ResourceFolder.Converter, ResourceList.Converter, ResourcePath.Converter, StringList.Converter, ThrowableConverter, UserName.Converter, UtcDateTimeConverter, VersionConverter, ZoneIdConverter

public interface Converter<From,​To> extends Repeater
A converter converts from one type to another. Converters are message Repeaters, relaying information about any conversion issues to listeners.
Author:
jonathanl (shibo)
See Also:
Repeater, Transceiver
  • Method Details

    • convert

      To convert(From from)
      Convert from type <From> to type <To>.
      Parameters:
      from - The value to convert
      Returns:
      The converted value