mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-20 05:29:35 +00:00
24 lines
375 B
Java
24 lines
375 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
public class True extends Function
|
|
{
|
|
True (Sheet parent, Cell cell, String text)
|
|
{
|
|
super (parent, cell, text);
|
|
|
|
value = 1;
|
|
valueType = ValueType.VALUE;
|
|
}
|
|
|
|
@Override
|
|
public boolean isBoolean ()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String getText ()
|
|
{
|
|
return value == 0 ? "FALSE" : "TRUE";
|
|
}
|
|
} |