to top
Datalogic APIs
public class

StringArrayBlob

extends SerializableBlob
implements Iterable<T>
java.lang.Object
   ↳ com.datalogic.device.configuration.SerializableBlob
     ↳ com.datalogic.device.configuration.StringArrayBlob
Known Direct Subclasses

Class Overview

StringArrayBlob implements the SerializableBlob that manages the list of String.

Summary

Public Constructors
StringArrayBlob()
Default constructor
StringArrayBlob(List<String> strings)
StringArrayBlob's constructor from a list of String.
Public Methods
void add(String str)
Appends the specified String to the end of this list.
void clear()
Clear all String elements in the list.
String get(int i)
Returns the String at the specified position in this list.
Iterator<String> iterator()
Returns an iterator over elements of String.
void remove(int i)
Removes the String at the specified position in this list.
int size()
Returns the number of String elements in this list.
[Expand]
Inherited Methods
From class com.datalogic.device.configuration.SerializableBlob
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public StringArrayBlob ()

Added in revision 36

Default constructor

public StringArrayBlob (List<String> strings)

Added in revision 36

StringArrayBlob's constructor from a list of String.

Parameters
strings List : List of multiple String.

Public Methods

public void add (String str)

Added in revision 36

Appends the specified String to the end of this list.

Parameters
str : String to be appended to this list.

public void clear ()

Added in revision 36

Clear all String elements in the list.

public String get (int i)

Added in revision 36

Returns the String at the specified position in this list.

Parameters
i : index of the String to return.
Returns
  • the element at the specified position in this list

public Iterator<String> iterator ()

Added in revision 36

Returns an iterator over elements of String.

Returns
  • Iterator : a String iterator.

public void remove (int i)

Added in revision 36

Removes the String at the specified position in this list. Shifts any subsequent String to the left (subtracts one from their indices).

Parameters
i : the index of the element to be removed

public int size ()

Added in revision 36

Returns the number of String elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns
  • int the number of elements in this list