1 25 26 package org.snipsnap.versioning; 27 28 29 35 36 public class ChangeInfo { 37 private int size; 38 private int from; 39 private int to; 40 private String [] lines; 41 private String type; 42 public static final String MOVE="MOVE"; 43 public static final String DELETE="DELETE"; 44 public static final String INSERT="INSERT"; 45 public static final String CHANGE="CHANGE"; 46 47 public ChangeInfo(String type, int from, int to) { 48 this.type = type; 49 this.from = from; 50 this.to = to; 51 } 52 53 public void setLines(String [] lines) { 54 this.lines = lines; 55 this.size = lines.length; 56 } 57 58 public int getSize() { 59 return size; 60 } 61 62 public int getFrom() { 63 return from; 64 } 65 66 public int getTo() { 67 return to; 68 } 69 70 public String getType() { 71 return type; 72 } 73 74 public String [] getLines() { 75 return lines; 76 } 77 } 78 | Popular Tags |