package cellbase;
public abstract class CellBase
{
public Object clone()
{
return null;
}
public abstract Object go(byte x, short y);
public abstract void so(byte x, short y, Object o);
public abstract short max();
public abstract void ramDelete(short y);
public float af(byte col, short row)
{
try
{
return ((Float)go(col, row)).floatValue();
}
catch (Exception e)
{
return 0;
}
}
String mh(byte col, short row)
{
for (short i = row; i >= 0; i--)
{
String s = go(col, i) + "";
if (!s.trim().equals("")) return s;
}
return null;
}
public long al(byte col, short row)
{
try
{
return new Long(""+ go(col, row)). longValue();
}
catch (Exception e)
{
return 0;
}
}
public String ad(byte col, short row)
{
long m = al(col, row);
try
{
if (m == 0) throw new RuntimeException("");
return DTFormatter.shift(m);
}
catch (Exception e)
{
return "Timeless.";
}
}
}