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