且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将Scala转换导出到Java

更新时间:2023-11-19 23:39:22

尝试

public class JavaInterestService<Account> implements InterestService<Account> {
    @Override
    public Kleisli<Either, Account, Option<BigDecimal>> computeInterest() {
        throw new NotImplementedException();
    }

    @Override
    public Kleisli<Either, Option<BigDecimal>, BigDecimal> computeTax() {
        throw new NotImplementedException();
    }
}

Java编译器可以将种类繁多的Scala类型视为原始类型 如何匹配混合类型Java泛型的scala更高类​​型类型功能的实现?

Java compiler can see higher-kinded Scala types as raw types how match mixed type of scala higher-kinder types feature with java generic type?