MandatoryImporterDependencyFactory.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:gemini.blueprint 作者:
private String[] getInterfaces(PropertyValue pv) {
    if (pv == null)
        return new String[0];

    Object value = pv.getValue();

    if (value instanceof Collection) {
        Collection collection = (Collection) value;
        String[] strs = new String[collection.size()];
        int index = 0;
        for (Object obj : collection) {
            if (value instanceof TypedStringValue) {
                strs[index] = ((TypedStringValue) value).getValue();
            } else {
                strs[index] = value.toString();
            }
            index++;
        }
        return strs;
    } else {
        return new String[] { value.toString() };
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号