org.nodal.util
Class LongSeqUtil

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

public final class LongSeqUtil
extends java.lang.Object

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

Author:
Lee Iverson

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

Constructor Detail

LongSeqUtil

public LongSeqUtil()
Method Detail

create

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

Throws:
ConstraintFailure

create

public static final LongSeq create(long[] a)
Create an LongSeq interface for an long[] array.


create

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

Tested on creation for validity.

Throws:
TypeConstraintFailure

create

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


create

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

Throws:
TypeConstraintFailure