clojure.lang.RT.toArray()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(98)

本文整理了Java中clojure.lang.RT.toArray方法的一些代码示例,展示了RT.toArray的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RT.toArray方法的具体详情如下:
包路径:clojure.lang.RT
类名称:RT
方法名:toArray

RT.toArray介绍

暂无

代码示例

代码示例来源:origin: videlalvaro/clochure

static public IPersistentVector create(Collection coll){
  if(!(coll instanceof ISeq) && coll.size() <= 32)
    return createOwning(coll.toArray());
  return PersistentVector.create(RT.seq(coll));
}

代码示例来源:origin: org.dunaj/clojure

static public IPersistentVector create(Object obj){
  if(obj instanceof IReduceInit)
    return PersistentVector.create((IReduceInit) obj);
  else if(obj instanceof ISeq)
    return PersistentVector.create(RT.seq(obj));
  else if(obj instanceof Iterable)
    return PersistentVector.create((Iterable)obj);
  else
    return createOwning(RT.toArray(obj));
}

代码示例来源:origin: videlalvaro/clochure

throw Util.runtimeException("Unreadable constructor form starting with \"#" + recordName + (char) ch + "\"");
Object[] recordEntries = readDelimitedList(endch, r, true).toArray();
Object ret = null;
Constructor[] allctors = ((Class)recordClass).getConstructors();

代码示例来源:origin: org.dunaj/clojure

Object[] args = RT.toArray(RT.next(o));
return Reflector.invokeConstructor(RT.classForName(fs.name.substring(0, fs.name.length() - 1)), args);
Object[] args = RT.toArray(RT.next(o));
return Reflector.invokeStaticMethod(fs.ns, fs.name, args);

代码示例来源:origin: org.dunaj/clojure

throw Util.runtimeException("Unexpected number of constructor arguments to " + recordClass.toString() + ": got " + recordEntries.count());
ret = Reflector.invokeConstructor(recordClass, RT.toArray(recordEntries));

相关文章