org.nodal.util
Class IntSeqUtil

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

public final class IntSeqUtil
extends java.lang.Object

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

Author:
Lee Iverson

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

Constructor Detail

IntSeqUtil

public IntSeqUtil()
Method Detail

create

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

Throws:
ConstraintFailure

create

public static final IntSeq create(int[] a)
Create an IntSeq interface for an int[] array.


create

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

Tested on creation for validity.

Throws:
TypeConstraintFailure

create

public static final IntSeq create(int i)
Create a IntSeq interface for a single int..


create

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

Throws:
TypeConstraintFailure