/** * Constructs this object from the raw data * * @param t the raw data * @param fr the formatting records * @param si the sheet */ public BooleanRecord(Record t, FormattingRecords fr, SheetImpl si) { super(t, fr, si); error = false; value = false; byte[] data = getRecord().getData(); error = (data[7] == 1); if (!error) { value = data[6] == 1 ? true : false; } }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { Assert.verify(!isError()); // return Boolean.toString(value) - only available in 1.4 or later return (new Boolean(value)).toString(); }
BooleanRecord br = new BooleanRecord(r, formattingRecords, sheet); if (br.isError()) ErrorRecord er = new ErrorRecord(br.getRecord(), formattingRecords, sheet); addCell(er);
BooleanRecord br = new BooleanRecord(r, formattingRecords, sheet); if (br.isError()) ErrorRecord er = new ErrorRecord(br.getRecord(), formattingRecords, sheet); addCell(er);
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public String getContents() { Assert.verify(!isError()); // return Boolean.toString(value) - only available in 1.4 or later return (new Boolean(value)).toString(); }
/** * Constructs this object from the raw data * * @param t the raw data * @param fr the formatting records * @param si the sheet */ public BooleanRecord(Record t, FormattingRecords fr, SheetImpl si) { super(t, fr, si); error = false; value = false; byte[] data = getRecord().getData(); error = (data[7] == 1); if (!error) { value = data[6] == 1 ? true : false; } }