org.nodal.util
Class DoubleSeqUtil

java.lang.Object
  extended byorg.nodal.util.DoubleSeqUtil

public final class DoubleSeqUtil
extends java.lang.Object

A utility class for providing the DoubleSeq interface to a variety of sources.

Author:
Lee Iverson

Constructor Summary
DoubleSeqUtil()
           
 
Method Summary
static DoubleSeq create(double i)
          Create a DoubleSeq interface for a single double..
static DoubleSeq create(double[] a)
          Create an DoubleSeq interface for an double[] array.
static DoubleSeq create(java.lang.Number n)
          Create a DoubleSeq interface wrapper around Number (sequence of one).
static DoubleSeq create(java.lang.Object v)
          Create an DoubleSeq interface for an arbitrary Object.
static DoubleSeq create(java.util.Vector v)
          Create an DoubleSeq interface for a Vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleSeqUtil

public DoubleSeqUtil()
Method Detail

create

public static final DoubleSeq create(java.lang.Object v)
                              throws ConstraintFailure
Create an DoubleSeq interface for an arbitrary Object.

Throws:
ConstraintFailure

create

public static final DoubleSeq create(double[] a)
Create an DoubleSeq interface for an double[] array.


create

public static final DoubleSeq create(java.util.Vector v)
                              throws TypeConstraintFailure
Create an DoubleSeq interface for a Vector.

Tested on creation for validity.

Throws:
TypeConstraintFailure

create

public static final DoubleSeq create(double i)
Create a DoubleSeq interface for a single double..


create

public static final DoubleSeq create(java.lang.Number n)
                              throws TypeConstraintFailure
Create a DoubleSeq interface wrapper around Number (sequence of one).

Throws:
TypeConstraintFailure