com.starbase.diff
Class SharedCharSequence

java.lang.Object
  |
  +--com.starbase.diff.SharedCharSequence
All Implemented Interfaces:
CharSequence

public class SharedCharSequence
extends java.lang.Object
implements CharSequence

An implementation of the ByteSequence interface that uses an underlying byte array along with an offset and length parameter.


Constructor Summary
SharedCharSequence(CharSequence data, int start, int length)
          Create a new sequence using the underlying data.
 
Method Summary
 char charAt(int n)
          Returns the char located at the nth position (zero-based).
 int length()
          Returns the length of the sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedCharSequence

public SharedCharSequence(CharSequence data,
                          int start,
                          int length)
Create a new sequence using the underlying data. The sequence begins at start and has the specified length.

Method Detail

charAt

public char charAt(int n)
Description copied from interface: CharSequence
Returns the char located at the nth position (zero-based).

Specified by:
charAt in interface CharSequence

length

public int length()
Description copied from interface: CharSequence
Returns the length of the sequence.

Specified by:
length in interface CharSequence


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.