1 2 17 18 package org.apache.poi.hdf.model.hdftypes; 19 20 21 27 public class PropertyNode implements Comparable 28 { 29 private byte[] _grpprl; 30 private int _fcStart; 31 private int _fcEnd; 32 33 38 public PropertyNode(int fcStart, int fcEnd, byte[] grpprl) 39 { 40 _fcStart = fcStart; 41 _fcEnd = fcEnd; 42 _grpprl = grpprl; 43 } 44 47 public int getStart() 48 { 49 return _fcStart; 50 } 51 54 public int getEnd() 55 { 56 return _fcEnd; 57 } 58 61 protected byte[] getGrpprl() 62 { 63 return _grpprl; 64 } 65 68 public int compareTo(Object o) 69 { 70 int fcEnd = ((PropertyNode)o).getEnd(); 71 if(_fcEnd == fcEnd) 72 { 73 return 0; 74 } 75 else if(_fcEnd < fcEnd) 76 { 77 return -1; 78 } 79 else 80 { 81 return 1; 82 } 83 } 84 } 85 | Popular Tags |