Class CollectionTools
- java.lang.Object
-
- org.biojava.nbio.structure.align.util.CollectionTools
-
public class CollectionTools extends Object
Utilities for working with collections.- Author:
- Thomas Down
-
-
Constructor Summary
Constructors Constructor Description CollectionTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
randomPick(Collection<Number> col)
static double[]
toDoubleArray(Collection<Number> l)
static int[]
toIntArray(Collection<Number> l)
-
-
-
Constructor Detail
-
CollectionTools
public CollectionTools()
-
-
Method Detail
-
toIntArray
public static int[] toIntArray(Collection<Number> l)
-
toDoubleArray
public static double[] toDoubleArray(Collection<Number> l)
-
randomPick
public static Object randomPick(Collection<Number> col)
-
-