org.nodal.util
Class ShortSeqUtil

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

public final class ShortSeqUtil
extends java.lang.Object

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

Author:
Lee Iverson

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

Constructor Detail

ShortSeqUtil

public ShortSeqUtil()
Method Detail

create

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

Throws:
ConstraintFailure

create

public static final ShortSeq create(short[] a)
Create an ShortSeq interface for an short[] array.


create

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

Tested on creation for validity.

Throws:
TypeConstraintFailure

create

public static final ShortSeq create(short i)
Create a ShortSeq interface for a single short..


create

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

Throws:
TypeConstraintFailure