本文整理了Java中clojure.lang.RT.toArray
方法的一些代码示例,展示了RT.toArray
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RT.toArray
方法的具体详情如下:
包路径:clojure.lang.RT
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!