org.nodal.util
Class CharSeqUtil

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

public final class CharSeqUtil
extends java.lang.Object

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

Author:
Lee Iverson

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

Constructor Detail

CharSeqUtil

public CharSeqUtil()
Method Detail

create

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

Throws:
ConstraintFailure

create

public static final CharSeq create(char[] a)
Create an CharSeq interface for an char[] array.


create

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

Tested on creation for validity.

Throws:
TypeConstraintFailure

create

public static final CharSeq create(java.lang.String a)
Create an CharSeq interface for a String.


create

public static final CharSeq create(java.lang.StringBuffer a)
Create an CharSeq interface for a StringBuffer.


create

public static final CharSeq create(char i)
Create a CharSeq interface for a single char..


create

public static final CharSeq create(java.lang.Character n)
Create a CharSeq interface wrapper around Character (sequence of one).