Class StringListType

  • All Implemented Interfaces:
    Command, State, Type

    @NonNullByDefault
    public class StringListType
    extends Object
    implements Command, State
    This type can be used for items that are dealing with telephony functionality.
    Author:
    Thomas Eichstaedt-Engelen - Initial contribution, Gaƫl L'hopital - port to Eclipse SmartHome
    • Constructor Detail

      • StringListType

        public StringListType()
      • StringListType

        public StringListType​(List<String> rows)
      • StringListType

        public StringListType​(StringType... rows)
      • StringListType

        public StringListType​(String... rows)
      • StringListType

        public StringListType​(String serialized)
        Deserialize the input string, splitting it on every delimiter not preceded by a backslash.
    • Method Detail

      • getValue

        public String getValue​(int index)
      • format

        public String format​(String pattern)

        Formats the value of this type according to a pattern (@see Formatter). One single value of this type can be referenced by the pattern using an index. The item order is defined by the natural (alphabetical) order of their keys.

        Specified by:
        format in interface Type
        Parameters:
        pattern - the pattern to use containing indexes to reference the single elements of this type.
        Returns:
        the formatted string
      • toFullString

        public String toFullString()
        Description copied from interface: Type
        Get a string representation that contains the whole internal representation of the type.

        The returned string could be consumed by the static 'valueOf(String)' method of the respective type to build a new type that is equal to this type.

        Specified by:
        toFullString in interface Type
        Returns:
        a full string representation of the type to be consumed by 'valueOf(String)'