Skip to content

Commit b8fe528

Browse files
committed
💀 Forgot a class.
1 parent 5582c73 commit b8fe528

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
package com.ultreon.mods.advanceddebug.common;
2+
3+
import java.math.BigDecimal;
4+
import java.math.BigInteger;
5+
6+
public abstract class AbstractSize {
7+
public abstract Number getWidth();
8+
9+
public abstract Number getHeight();
10+
11+
public int getIntWidth() {
12+
return (int) getWidth();
13+
}
14+
15+
public int getIntHeight() {
16+
return (int) getHeight();
17+
}
18+
19+
public long getLongWidth() {
20+
return (long) getWidth();
21+
}
22+
23+
public long getLongHeight() {
24+
return (long) getHeight();
25+
}
26+
27+
public float getFloatWidth() {
28+
return (float) getWidth();
29+
}
30+
31+
public float getFloatHeight() {
32+
return (float) getHeight();
33+
}
34+
35+
public double getDoubleWidth() {
36+
return (double) getWidth();
37+
}
38+
39+
public double getDoubleHeight() {
40+
return (double) getHeight();
41+
}
42+
43+
public BigInteger getBigIntegerWidth() {
44+
return new BigInteger(getWidth().toString());
45+
}
46+
47+
public BigInteger getBigIntegerHeight() {
48+
return new BigInteger(getHeight().toString());
49+
}
50+
51+
public BigDecimal getBigDecimalWidth() {
52+
return new BigDecimal(getWidth().toString());
53+
}
54+
55+
public BigDecimal getBigDecimalHeight() {
56+
return new BigDecimal(getHeight().toString());
57+
}
58+
}

0 commit comments

Comments
 (0)