org.nodal.util
Class BooleanSeqUtil

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

public final class BooleanSeqUtil
extends java.lang.Object

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

Author:
Lee Iverson

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

Constructor Detail

BooleanSeqUtil

public BooleanSeqUtil()
Method Detail

create

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

Throws:
ConstraintFailure

create

public static final BooleanSeq create(boolean[] a)
Create a BooleanSeq interface for an boolean[] array.


create

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

Tested on creation for validity.

Throws:
TypeConstraintFailure

create

public static final BooleanSeq create(boolean i)
Create a BooleanSeq interface for a single boolean..


create

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

Throws:
TypeConstraintFailure