Interface StringConverter<Value>

Type Parameters:
Value - The value to convert to and from
All Superinterfaces:
Broadcaster, Converter<String,​Value>, Listener, NamedObject, Receiver<Transmittable>, Repeater, Transceiver, Transmitter<Transmittable>, TwoWayConverter<String,​Value>
All Known Implementing Classes:
AttachmentConverter, AttachmentListConverter, BaseCollectionConverter, 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 StringConverter<Value> extends TwoWayConverter<String,​Value>
A bi-directional converter between String values and values of the given type. The Converter interface converts from String to type <Value> and the method TwoWayConverter.unconvert(Object) converts a <Value> back to a String.
Author:
jonathanl (shibo)
See Also:
BaseStringConverter
  • Field Details

  • Method Details

    • asObjectList

      default ObjectList<Value> asObjectList(StringList list)
      Returns:
      The given string list with each string converted to an object using this converter
    • asStringList

      default StringList asStringList(ObjectList<Value> list)
      Returns:
      The given string list with each string converted to an object using this converter