org.scijava.util
Class ArrayUtils

java.lang.Object
  extended by org.scijava.util.ArrayUtils

public final class ArrayUtils
extends Object

Utility class for creating and manipulating PrimitiveArray instances.

Author:
Mark Hiner

Method Summary
static Collection<?> toCollection(Object value)
          Converts the provided Object to a Collection implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toCollection

public static Collection<?> toCollection(Object value)
Converts the provided Object to a Collection implementation. If the object is an array type, a PrimitiveArray wrapper will be created.



Copyright © 2009–2014 SciJava. All rights reserved.