com.starteam.diff
Class LineIterator

java.lang.Object
  extended by com.starteam.diff.LineIterator

public final class LineIterator
extends java.lang.Object

This class iterates over characters in a line. It actually iterates from the back forward.


Constructor Summary
LineIterator(CharSequence sequence, int flags, ColumnMask[] mask)
          Construct a Line Iterator+
 
Method Summary
 int getIndex()
          Returns the underlying CharSequence index of the last char retrieved.
 boolean hasNext()
          return true if there are more chars available to be read.
 char nextChar()
          Returns the next char in the underlying sequence.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineIterator

public LineIterator(CharSequence sequence,
                    int flags,
                    ColumnMask[] mask)
Construct a Line Iterator+

Parameters:
sequence - the char sequence
flags - the flags to apply
mask - an array of column masks
Method Detail

hasNext

public boolean hasNext()
return true if there are more chars available to be read.


nextChar

public char nextChar()
Returns the next char in the underlying sequence.


getIndex

public int getIndex()
Returns the underlying CharSequence index of the last char retrieved.

Returns:
-1 if nextChar() has not been called.


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