org.biojava.bio.structure.align.util
Class CollectionTools

java.lang.Object
  extended by org.biojava.bio.structure.align.util.CollectionTools

public class CollectionTools
extends Object

Utilities for working with collections.

Author:
Thomas Down

Constructor Summary
CollectionTools()
           
 
Method Summary
static Object randomPick(Collection<Number> col)
           
static double[] toDoubleArray(Collection<Number> l)
           
static int[] toIntArray(Collection<Number> l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)