2022-01-30 22:00:16 +01:00
|
|
|
package love.distributedrebirth.numberxd.base2t;
|
2022-01-28 11:19:52 +01:00
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2022-10-20 03:06:56 +02:00
|
|
|
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
2022-02-02 22:51:56 +01:00
|
|
|
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
|
2022-02-02 18:26:21 +01:00
|
|
|
|
2022-01-29 05:50:02 +01:00
|
|
|
/**
|
2022-01-31 13:40:01 +01:00
|
|
|
* Octal base based number interface.
|
2022-01-29 05:50:02 +01:00
|
|
|
*/
|
2022-10-15 02:34:58 +02:00
|
|
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-01-28 11:19:52 +01:00
|
|
|
public interface BaseNumber<V extends BaseNumber<V>> {
|
|
|
|
|
|
2022-02-21 02:46:41 +01:00
|
|
|
int BãßBitCount();
|
2022-01-28 18:37:50 +01:00
|
|
|
|
2022-04-11 20:17:32 +02:00
|
|
|
default V toClone() {
|
|
|
|
|
return toClone(iteratorOctalsByClone());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
V toClone(BaseIteratorOctal values);
|
2022-01-28 11:19:52 +01:00
|
|
|
|
2022-02-02 18:26:21 +01:00
|
|
|
void fillOctalsByClone(BaseAppenderOctal appender);
|
2022-01-28 11:19:52 +01:00
|
|
|
|
2022-02-02 18:26:21 +01:00
|
|
|
default BaseIteratorOctal iteratorOctalsByClone() {
|
2022-01-28 11:19:52 +01:00
|
|
|
List<T08PartOctal> octals = new ArrayList<>();
|
2022-02-02 18:26:21 +01:00
|
|
|
fillOctalsByClone(new BaseAppenderOctal(octals));
|
2022-02-04 18:00:03 +01:00
|
|
|
return new BaseIteratorOctalAdapter(octals.iterator());
|
2022-01-28 11:19:52 +01:00
|
|
|
}
|
|
|
|
|
}
|