şunun yansıması
https://github.com/DanilaFe/abacus
eşitlendi 2026-01-17 12:25:20 +00:00
Add a class that keeps track of the implementation information.
Bu işleme şunda yer alıyor:
17
src/main/java/org/nwapw/abacus/plugin/NumberImplementation.java
Normal dosya
17
src/main/java/org/nwapw/abacus/plugin/NumberImplementation.java
Normal dosya
@@ -0,0 +1,17 @@
|
||||
package org.nwapw.abacus.plugin;
|
||||
|
||||
import org.nwapw.abacus.number.NumberInterface;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
public abstract class NumberImplementation {
|
||||
|
||||
private Class<? extends NumberInterface> implementation;
|
||||
private Map<String, Function<NumberInterface, NumberInterface>> promotionPaths;
|
||||
private int priority;
|
||||
|
||||
public abstract NumberInterface instanceForString(String string);
|
||||
public abstract NumberInterface instanceForPi();
|
||||
|
||||
}
|
||||
Yeni konuda referans
Bir kullanıcı engelle