gdxapp4d/demo4d-numberxd/src/main/love/distributedrebirth/numberxd/GroßGetậl1ⁿᴰ.java

54 lines
1.6 KiB
Java
Raw Normal View History

2022-01-30 21:00:16 +00:00
package love.distributedrebirth.numberxd;
2022-01-28 10:24:54 +00:00
2022-02-04 17:00:03 +00:00
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal;
import love.distributedrebirth.numberxd.base2t.BaseIteratorTyte;
2022-02-04 17:00:03 +00:00
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
import love.distributedrebirth.numberxd.base2t.type.V009Tyte;
2022-02-04 17:00:03 +00:00
import love.distributedrebirth.numberxd.base2t.type.V144Tocta;
2022-01-28 10:24:54 +00:00
/**
2022-01-30 20:50:19 +00:00
* Holds an 144 bit fraction.
*/
2022-02-04 17:00:03 +00:00
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class GroßGetậl1ⁿᴰ extends AbstractBaseGetậlLevel0<GroßGetậl1ⁿᴰ,V009Tyte> {
2022-01-28 10:24:54 +00:00
2022-02-04 17:00:03 +00:00
//public static int NUMERATOR_SIZE = 7;
//public static int DENOMINATOR_SIZE = 9;
//public static int BIT_COUNT = V144Tocta.BIT_COUNT;
//private final V009Tyte[] numerator = new V009Tyte[NUMERATOR_SIZE];
//private final V009Tyte[] denominator = new V009Tyte[DENOMINATOR_SIZE];
private final V144Tocta value;
2022-01-28 10:24:54 +00:00
public GroßGetậl1ⁿᴰ() {
2022-02-04 17:00:03 +00:00
this(new V144Tocta());
2022-01-28 10:24:54 +00:00
}
public GroßGetậl1ⁿᴰ(BaseIteratorOctal values) {
2022-02-04 17:00:03 +00:00
this(new V144Tocta(values));
2022-01-30 10:28:52 +00:00
}
public GroßGetậl1ⁿᴰ(BaseIteratorTyte values) {
2022-02-04 17:00:03 +00:00
this(new V144Tocta(values));
2022-01-30 10:28:52 +00:00
}
2022-02-04 17:00:03 +00:00
public GroßGetậl1ⁿᴰ(V144Tocta value) {
this.value = value;
2022-01-28 10:24:54 +00:00
}
2022-02-04 17:00:03 +00:00
@Override
public V009Tyte getValue() {
return value.getTytePart(T16PartHex.values()[valueIndex0]);
2022-01-31 12:15:04 +00:00
}
2022-01-30 10:28:52 +00:00
@Override
2022-02-04 17:00:03 +00:00
public int getValueIndex0Length() {
return T16PartHex.LENGTH();
2022-01-30 10:28:52 +00:00
}
2022-02-04 17:00:03 +00:00
2022-01-30 10:28:52 +00:00
@Override
public GroßGetậl1ⁿᴰ toClone() {
2022-02-04 17:00:03 +00:00
return new GroßGetậl1ⁿᴰ(value.toClone());
2022-01-28 10:24:54 +00:00
}
}