to top
Datalogic APIs
public class

StringSetBlob

extends SerializableBlob
implements Iterable<T>
java.lang.Object
   ↳ com.datalogic.device.configuration.SerializableBlob
     ↳ com.datalogic.device.configuration.StringSetBlob

Class Overview

StringSetBlob implements the SerializableBlob that manages a collection of String.

Summary

Public Constructors
StringSetBlob()
Default constructor
StringSetBlob(Collection<String> strings)
StringSetBlob's constructor from a collection of String.
Public Methods
void add(String str)
Add the specified String to the collection of Strings.
void clear()
Clear all String elements in the collection.
boolean contains(String str)
Returns true if the specified String is contained into the collection.
Set<String> get()
Returns the all the strings from the collection.
boolean isEmpty()
Returns true if the collection is empty.
Iterator<String> iterator()
Returns an iterator over elements of String.
void remove(String str)
Remove the specified String from the collection of Strings.
void removeAll(Collection<String> strs)
Remove the specified collection of String from this collection of Strings.
int size()
Returns the number of String elements in this collection.
[Expand]
Inherited Methods
From class com.datalogic.device.configuration.SerializableBlob
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public StringSetBlob ()

Added in revision 40

Default constructor

public StringSetBlob (Collection<String> strings)

Added in revision 40

StringSetBlob's constructor from a collection of String.

Parameters
strings Collection : Collection of multiple String.

Public Methods

public void add (String str)

Added in revision 40

Add the specified String to the collection of Strings.

Parameters
str : String to be added to this collection.

public void clear ()

Added in revision 40

Clear all String elements in the collection.

public boolean contains (String str)

Added in revision 40

Returns true if the specified String is contained into the collection.

Parameters
str : to be checked.
Returns
  • boolean true if the string is in this collection, otherwise false.

public Set<String> get ()

Added in revision 40

Returns the all the strings from the collection.

Returns
  • {@code Set as the strings present into the collection.

public boolean isEmpty ()

Added in revision 40

Returns true if the collection is empty.

Returns
  • boolean true if the collection is empty, otherwise false.

public Iterator<String> iterator ()

Added in revision 40

Returns an iterator over elements of String.

Returns
  • Iterator : a String iterator.

public void remove (String str)

Added in revision 40

Remove the specified String from the collection of Strings.

Parameters
str : String to be removed from this collection.

public void removeAll (Collection<String> strs)

Added in revision 40

Remove the specified collection of String from this collection of Strings.

Parameters
strs : Collection to be removed from this collection.

public int size ()

Added in revision 40

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

Returns
  • int the number of elements in this collection.