Class StringSet

All Implemented Interfaces:
Iterable<String>, PrimitiveBeanCollection<String>

public class StringSet extends AnchorBean<StringSet> implements PrimitiveBeanCollection<String>
A bean defining a set of Strings.

The elements are stored internally in a consistent ordering, according to their natural comparator.

An example:


    <datasets config-class="org.anchoranalysis.bean.primitive.StringSet" config-factory="stringSet">
 	<item>first_dataset</item>
 	<item>second_dataset</item>
 	<item>some_other_dataset</item>
   </datasets>
 
Author:
Owen Feehan
  • Constructor Details

    • StringSet

      public StringSet(String... values)
      Constructs with one or more values added to the list.
      Parameters:
      values - the values
    • StringSet

      public StringSet()
    • StringSet

      public StringSet(Set<String> set)
      Creates a new StringSet instance.
      Parameters:
      set - The underlying set of values.
  • Method Details