com.starteam.diff
Class SharedCharSequence

java.lang.Object
  extended by com.starteam.diff.SharedCharSequence
All Implemented Interfaces:
CharSequence

public final 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 character at the index
 int getLength()
          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.

Parameters:
data - the char sequence
start - the start position
length - the length of the sequence
Method Detail

charAt

public char charAt(int n)
returns the character at the index

Specified by:
charAt in interface CharSequence
Parameters:
n - the index
Returns:
char the character at that index

getLength

public int getLength()
returns the length of the sequence

Specified by:
getLength in interface CharSequence
Returns:
int the length of the sequence


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.