net.sourceforge.xwing.util
Class SequenceUtils.ChangeInfo

java.lang.Object
  extended bynet.sourceforge.xwing.util.SequenceUtils.ChangeInfo
Enclosing class:
SequenceUtils

public static class SequenceUtils.ChangeInfo
extends Object

A class that encapsulates the information about the change from an old sequence to a new sequence.

Version:
$Revision: 1.2 $
Author:
Scott Howlett

Method Summary
 int getChangeType()
          The type of change, either NO_CHANGE, INTERVAL_ADDED, INTERVAL_REMOVED, or COMPLEX_CHANGE.
 int getFirstIndex()
          For changes of type INTERVAL_ADDED, the index in the new sequence of the first added element.
 int getLastIndex()
          For changes of type INTERVAL_ADDED, the index in the new sequence of the last added element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChangeType

public int getChangeType()
The type of change, either NO_CHANGE, INTERVAL_ADDED, INTERVAL_REMOVED, or COMPLEX_CHANGE.


getFirstIndex

public int getFirstIndex()
For changes of type INTERVAL_ADDED, the index in the new sequence of the first added element. For changes of type INTERVAL_REMOVED, the index in the old sequence of the first removed element.


getLastIndex

public int getLastIndex()
For changes of type INTERVAL_ADDED, the index in the new sequence of the last added element. For changes of type INTERVAL_REMOVED, the index in the old sequence of the last removed element.



Copyright © 2003 The Xwing Project. All Rights Reserved.