org.ahmadsoft.ropes
Class RopeBuilder

java.lang.Object
  extended by org.ahmadsoft.ropes.RopeBuilder

public final class RopeBuilder
extends java.lang.Object

A factory for building ropes.

Author:
Amin Ahmad

Constructor Summary
RopeBuilder()
           
 
Method Summary
 Rope build(char[] sequence)
          Construct a rope from a character array.
 Rope build(java.lang.CharSequence sequence)
          Construct a rope from an underlying character sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RopeBuilder

public RopeBuilder()
Method Detail

build

public Rope build(char[] sequence)
Construct a rope from a character array.

Parameters:
sequence - a character array
Returns:
a rope representing the underlying character array.

build

public Rope build(java.lang.CharSequence sequence)
Construct a rope from an underlying character sequence.

Parameters:
sequence - the underlying character sequence.
Returns:
a rope representing the underlying character sequnce.


Copyright © 2007 Amin Ahmad. All Rights Reserved.