Class DoubleSet

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

public class DoubleSet extends AnchorBean<DoubleSet> implements PrimitiveBeanCollection<Double>
A bean defining a set of Doubles.

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

An example:


  <datasets config-class="org.anchoranalysis.bean.primitive.DoubleSet" config-factory="doubleSet">
    <item>1.2</item>
    <item>-0.34354</item>
    <item>7.2e5</item>
 </datasets>
 
Author:
Owen Feehan
  • Constructor Details

    • DoubleSet

      public DoubleSet(Double... values)
      Constructs with one or more values added to the set.
      Parameters:
      values - the values
    • DoubleSet

      public DoubleSet()
  • Method Details