1 11 package org.eclipse.compare.rangedifferencer; 12 13 class LinkedRangeDifference extends RangeDifference { 14 15 static final int INSERT= 0; 16 static final int DELETE= 1; 17 18 LinkedRangeDifference fNext; 19 20 23 LinkedRangeDifference() { 24 super(ERROR); 25 fNext= null; 26 } 27 28 31 LinkedRangeDifference(LinkedRangeDifference next, int operation) { 32 super(operation); 33 fNext= next; 34 } 35 36 39 LinkedRangeDifference getNext() { 40 return fNext; 41 } 42 43 boolean isDelete() { 44 return kind() == DELETE; 45 } 46 47 boolean isInsert() { 48 return kind() == INSERT; 49 } 50 51 54 void setNext(LinkedRangeDifference next) { 55 fNext= next; 56 } 57 } 58 | Popular Tags |