Class StringListType

  • All Implemented Interfaces:
    Command, State, Type

    public class StringListType
    extends Object
    implements Command, State
    This type can be used for items that are dealing with telephony functionality.
    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
        pattern - the pattern to use containing indexes to reference the single elements of this type.
        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
        a full string representation of the type to be consumed by 'valueOf(String)'
      • hashCode

        public int hashCode()
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable Object obj)
        equals in class Object