本文整理了Java中org.jruby.RubyHash.fastASetCheckString
方法的一些代码示例,展示了RubyHash.fastASetCheckString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RubyHash.fastASetCheckString
方法的具体详情如下:
包路径:org.jruby.RubyHash
类名称:RubyHash
方法名:fastASetCheckString
暂无
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2, IRubyObject key3, IRubyObject value3) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
hash.fastASetCheckString(runtime, key2, value2);
hash.fastASetCheckString(runtime, key3, value3);
return hash;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2, IRubyObject key3, IRubyObject value3) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
hash.fastASetCheckString(runtime, key2, value2);
hash.fastASetCheckString(runtime, key3, value3);
return hash;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash19(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2, IRubyObject key3, IRubyObject value3) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
hash.fastASetCheckString(runtime, key2, value2);
hash.fastASetCheckString(runtime, key3, value3);
return hash;
}
代码示例来源:origin: org.jruby/jruby-complete
@Deprecated
public final void fastASetCheckString19(Ruby runtime, IRubyObject key, IRubyObject value) {
fastASetCheckString(runtime, key, value);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
hash.fastASetCheckString(runtime, key2, value2);
return hash;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash19(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
hash.fastASetCheckString(runtime, key2, value2);
return hash;
}
代码示例来源:origin: org.jruby/jruby-complete
public final void fastASet(Ruby runtime, IRubyObject key, IRubyObject value, boolean prepareString) {
if (prepareString) {
fastASetCheckString(runtime, key, value);
} else {
fastASet(key, value);
}
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
return hash;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
return hash;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash19(Ruby runtime, IRubyObject key1, IRubyObject value1) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
return hash;
}
代码示例来源:origin: org.jruby/jruby-core
public final void fastASet(Ruby runtime, IRubyObject key, IRubyObject value, boolean prepareString) {
if (prepareString) {
fastASetCheckString(runtime, key, value);
} else {
fastASet(key, value);
}
}
代码示例来源:origin: org.jruby/jruby-complete
public static IRubyObject hash(ThreadContext context, IRubyObject[] pairs) {
Ruby runtime = context.runtime;
RubyHash hash = RubyHash.newHash(runtime);
for (int i = 0; i < pairs.length;) {
hash.fastASetCheckString(runtime, pairs[i++], pairs[i++]);
}
return hash;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public static RubyHash constructHash19(Ruby runtime, IRubyObject key1, IRubyObject value1) {
RubyHash hash = RubyHash.newHash(runtime);
hash.fastASetCheckString(runtime, key1, value1);
return hash;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/** rb_hash_aset
*
*/
@JRubyMethod(name = {"[]=", "store"})
public IRubyObject op_aset(ThreadContext context, IRubyObject key, IRubyObject value) {
modify();
fastASetCheckString(context.runtime, key, value);
return value;
}
代码示例来源:origin: org.jruby/jruby-complete
/** rb_hash_aset
*
*/
@JRubyMethod(name = {"[]=", "store"})
public IRubyObject op_aset(ThreadContext context, IRubyObject key, IRubyObject value) {
modify();
fastASetCheckString(context.runtime, key, value);
return value;
}
代码示例来源:origin: org.jruby/jruby-complete
private static void setConfig(ThreadContext context, RubyHash hash, String key, String value) {
final Ruby runtime = context.runtime;
hash.fastASetCheckString(runtime, runtime.newString(key), runtime.newString(value));
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException {
RubyHash result = newHash(input.getRuntime());
input.registerLinkTarget(result);
int size = input.unmarshalInt();
for (int i = 0; i < size; i++) {
result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject());
}
if (defaultValue) result.default_value_set(input.unmarshalObject());
return result;
}
代码示例来源:origin: org.jruby/jruby-complete
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException {
RubyHash result = newHash(input.getRuntime());
input.registerLinkTarget(result);
int size = input.unmarshalInt();
for (int i = 0; i < size; i++) {
result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject());
}
if (defaultValue) result.default_value_set(input.unmarshalObject());
return result;
}
代码示例来源:origin: org.jruby/jruby-core
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException {
RubyHash result = newHash(input.getRuntime());
input.registerLinkTarget(result);
int size = input.unmarshalInt();
for (int i = 0; i < size; i++) {
result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject());
}
if (defaultValue) result.default_value_set(input.unmarshalObject());
return result;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public static RubyHash unmarshalFrom(UnmarshalStream input, boolean defaultValue) throws IOException {
RubyHash result = newHash(input.getRuntime());
input.registerLinkTarget(result);
int size = input.unmarshalInt();
for (int i = 0; i < size; i++) {
result.fastASetCheckString(input.getRuntime(), input.unmarshalObject(), input.unmarshalObject());
}
if (defaultValue) result.default_value_set(input.unmarshalObject());
return result;
}
内容来源于网络,如有侵权,请联系作者删除!