dmolony-DiskBrowser/src/com/bytezone/diskbrowser/visicalc/False.java

26 lines
406 B
Java
Raw Normal View History

2017-03-17 23:57:48 +00:00
package com.bytezone.diskbrowser.visicalc;
2017-03-20 01:45:14 +00:00
public class False extends ConstantFunction
2017-03-17 23:57:48 +00:00
{
False (Cell cell, String text)
2017-03-17 23:57:48 +00:00
{
super (cell, text);
2017-03-17 23:57:48 +00:00
2017-03-18 09:21:11 +00:00
assert text.equals ("@FALSE") : text;
2017-03-17 23:57:48 +00:00
value = 0;
2017-03-18 00:24:05 +00:00
valueType = ValueType.VALUE;
}
@Override
public boolean isBoolean ()
{
return true;
}
@Override
public String getText ()
{
return value == 0 ? "FALSE" : "TRUE";
2017-03-17 23:57:48 +00:00
}
}