开发者社区> 问答> 正文

C#转Java 语句问题求好心人 急急急急

大手你们在哪!!!!!! 发私信也行!! 求代码。
我想把一个加法的方法,加法只是个方法名。 存在 public static List SameUnitParaMethod { get; set; }
还有 方法名叫长除速 ,长度÷速度 算一种类型关系。 把这个方法存在
public static Dictionary TypeRelation { get; set; }
用Java 类怎么表示,具体怎么写。
传一个单位数组,里面全是单位,
public class UnitScalarTypeRelation
{
///
/// 返回类型:UnitScalarType
///
public string ReturnType { get; set; }
///
/// 子元素顺序类型.Combination-(A,(B|C|D)):A为首个,其它任意或DisOrder-表示没有顺序,任意 举个例子:比如有长度,时间。他们做除法,只能 A为长度,(B,c,d)
为时间
///
public SubElementType SubTypeType = SubElementType.AscOrder;

/// <summary>
/// 含单位的参数类型
/// </summary>
public List<string> UnitParaType { get; set; }

}

展开
收起
a123456678 2016-03-20 14:15:25 2113 0
1 条回答
写回答
取消 提交回答
  • public static List SameUnitParaMethod { get; set; }
    在Java里面写

    private static ArrayList _SameUnitParaMethod;
    public static ArrayList getSameUnitParaMethod() {

    return _SameUnitParaMethod;

    }
    public static void setSameUnitParaMethod(ArrayList value) {

    _SameUnitParaMethod = value;

    }

    2019-07-17 19:09:37
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
The Reactive Cloud Native Arch 立即下载
JAVA开发手册1.5.0 立即下载