[go: up one dir, main page]

Menu

[r39]: / cellbase / CellBase.java  Maximize  Restore  History

Download this file

57 lines (56 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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.";
}
}
}