public class DoubleList extends AnchorBean<DoubleList> implements PrimitiveBeanCollection<Double>
Double
s.
An example:
<datasets config-class="org.anchoranalysis.bean.primitive.StringList" config-factory="doubleList">
<item>1.2</item>
<item>-0.34354</item>
<item>7.2e5</item>
</datasets>
Constructor and Description |
---|
DoubleList(Double... values)
Constructs with one or more values added to the list.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Double value)
Add an element to the collection.
|
protected boolean |
canEqual(Object other) |
boolean |
contains(Double value)
Whether the collection contains a particular element?
|
DoubleList |
duplicateBean()
Duplicate the bean.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty()
Whether the collection is empty or not.
|
Iterator<Double> |
iterator() |
checkMisconfigured, describeBean, describeChildren, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
forEach, spliterator
public DoubleList(Double... values)
values
- the valuespublic void add(Double value)
PrimitiveBeanCollection
add
in interface PrimitiveBeanCollection<Double>
value
- the element to add.public boolean contains(Double value)
PrimitiveBeanCollection
contains
in interface PrimitiveBeanCollection<Double>
value
- the element to search forpublic boolean isEmpty()
PrimitiveBeanCollection
isEmpty
in interface PrimitiveBeanCollection<Double>
public DoubleList duplicateBean()
NOTE: We need to specifically-implement it as the AnchorBean
functionality won't
work with this implementation, as it uses non-default initialization (using a
config-factory).
duplicateBean
in class AnchorBean<DoubleList>
protected boolean canEqual(Object other)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.