1 2 17 18 19 package org.apache.poi.hssf.record.formula; 20 21 import org.apache.poi.hssf.model.Workbook; 22 23 24 29 30 public class GreaterEqualPtg 31 extends OperationPtg 32 { 33 public final static int SIZE = 1; 34 public final static byte sid = 0x0c; 35 36 37 38 public GreaterEqualPtg() 39 { 40 } 41 42 public GreaterEqualPtg(byte [] data, int offset) 43 { 44 45 } 47 48 public void writeBytes(byte [] array, int offset) 49 { 50 array[ offset + 0 ] = sid; 51 } 52 53 public int getSize() 54 { 55 return SIZE; 56 } 57 58 public int getType() 59 { 60 return TYPE_BINARY; 61 } 62 63 public int getNumberOfOperands() 64 { 65 return 2; 66 } 67 68 public String toFormulaString(Workbook book) 69 { 70 return ">="; 71 } 72 73 public String toFormulaString(String [] operands) { 74 StringBuffer buffer = new StringBuffer (); 75 76 buffer.append(operands[ 0 ]); 77 78 buffer.append(toFormulaString((Workbook)null)); 79 buffer.append(operands[ 1 ]); 80 81 return buffer.toString(); 82 } 83 84 public Object clone() { 85 return new GreaterEqualPtg(); 86 } 87 88 } 89 | Popular Tags |