All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
Modifier and Type |
Method and Description |
<T> boolean |
allSymbols() |
IRubyObject |
any_p(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
aref(IRubyObject key)
|
IRubyObject |
aset(IRubyObject key,
IRubyObject value)
|
IRubyObject |
assoc(ThreadContext context,
IRubyObject obj) |
protected void |
checkIterating() |
void |
clear() |
IRubyObject |
compact_bang(ThreadContext context) |
IRubyObject |
compact(ThreadContext context) |
IRubyObject |
compare_by_identity_p(ThreadContext context) |
IRubyObject |
compare_by_identity(ThreadContext context) |
RubyBoolean |
compare(ThreadContext context,
RubyHash.VisitorWithState<RubyHash> visitor,
IRubyObject other) |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
RubyHash |
convertToHash()
Tries to convert this object to a Ruby Hash using the "to_hash" method.
|
static IRubyObject |
create(ThreadContext context,
IRubyObject recv,
IRubyObject[] args,
Block block)
rb_hash_s_create
|
static RubyClass |
createHashClass(Ruby runtime) |
IRubyObject |
default_proc()
rb_hash_default_proc
|
IRubyObject |
default_value_get(ThreadContext context) |
IRubyObject |
default_value_get(ThreadContext context,
IRubyObject arg) |
IRubyObject |
default_value_get(ThreadContext context,
IRubyObject[] args)
Deprecated.
|
IRubyObject |
default_value_set(IRubyObject defaultValue)
rb_hash_set_default
|
IRubyObject |
delete_if(ThreadContext context,
Block block) |
RubyHash |
delete_ifInternal(ThreadContext context,
Block block)
rb_hash_delete_if
|
IRubyObject |
delete(ThreadContext context,
IRubyObject key) |
IRubyObject |
delete(ThreadContext context,
IRubyObject key,
Block block)
rb_hash_delete
|
IRubyObject |
dig(ThreadContext context,
IRubyObject[] args) |
java.util.Set |
directEntrySet() |
java.util.Set |
directKeySet() |
java.util.Collection |
directValues() |
IRubyObject |
dup(ThreadContext context) |
RubyHash |
dupFast(ThreadContext context)
A lightweight dup for internal use that does not dispatch to initialize_copy nor rehash the keys.
|
IRubyObject |
each_key(ThreadContext context,
Block block) |
RubyHash |
each_keyCommon(ThreadContext context,
Block block)
rb_hash_each_key
|
IRubyObject |
each_pair(ThreadContext context,
Block block)
Deprecated.
|
RubyHash |
each_pairCommon(ThreadContext context,
Block block)
rb_hash_each_pair
|
RubyHash |
each_pairCommon(ThreadContext context,
Block block,
boolean oneNine)
Deprecated.
|
IRubyObject |
each_value(ThreadContext context,
Block block) |
RubyHash |
each_valueCommon(ThreadContext context,
Block block)
rb_hash_each_value
|
IRubyObject |
each(ThreadContext context,
Block block) |
IRubyObject |
each19(ThreadContext context,
Block block) |
RubyHash |
eachCommon(ThreadContext context,
Block block)
rb_hash_each
|
RubyBoolean |
empty_p()
rb_hash_empty_p
|
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object other)
This override does not do a "checked" dispatch.
|
IRubyObject |
fastARef(IRubyObject key) |
void |
fastASet(IRubyObject key,
IRubyObject value) |
void |
fastASet(Ruby runtime,
IRubyObject key,
IRubyObject value,
boolean prepareString) |
void |
fastASetCheckString(Ruby runtime,
IRubyObject key,
IRubyObject value) |
void |
fastASetCheckString19(Ruby runtime,
IRubyObject key,
IRubyObject value)
Deprecated.
|
void |
fastASetSmall(IRubyObject key,
IRubyObject value) |
void |
fastASetSmall(Ruby runtime,
IRubyObject key,
IRubyObject value,
boolean prepareString) |
void |
fastASetSmallCheckString(Ruby runtime,
IRubyObject key,
IRubyObject value) |
void |
fastASetSmallCheckString19(Ruby runtime,
IRubyObject key,
IRubyObject value)
Deprecated.
|
boolean |
fastDelete(IRubyObject key) |
RubyArray |
fetch_values(ThreadContext context,
IRubyObject[] args,
Block block) |
IRubyObject |
fetch(ThreadContext context,
IRubyObject[] args,
Block block)
rb_hash_fetch
|
IRubyObject |
fetch(ThreadContext context,
IRubyObject key,
Block block) |
IRubyObject |
fetch(ThreadContext context,
IRubyObject key,
IRubyObject _default,
Block block) |
IRubyObject |
flatten(ThreadContext context) |
IRubyObject |
flatten(ThreadContext context,
IRubyObject level) |
java.lang.Object |
get(java.lang.Object key) |
IRubyObject |
getIfNone() |
java.lang.Class |
getJavaClass()
Will return the Java interface that most closely can represent
this object, when working through Java integration translations.
|
ClassIndex |
getNativeClassIndex()
This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
RubyBoolean |
has_key_p(IRubyObject key) |
RubyBoolean |
has_key_p(ThreadContext context,
IRubyObject key)
rb_hash_has_key
|
RubyBoolean |
has_value_p(ThreadContext context,
IRubyObject expected)
rb_hash_has_value
|
boolean |
hasDefaultProc() |
RubyFixnum |
hash()
rb_hash_hash
|
RubyFixnum |
hash(ThreadContext context) |
RubyFixnum |
hash19()
Deprecated.
|
protected int |
hashValue(IRubyObject key) |
IRubyObject |
index(ThreadContext context,
IRubyObject expected)
rb_hash_index
|
IRubyObject |
index19(ThreadContext context,
IRubyObject expected)
Deprecated.
|
RubyHash |
initialize_copy(ThreadContext context,
IRubyObject other) |
RubyHash |
initialize_copy19(ThreadContext context,
IRubyObject other)
Deprecated.
|
IRubyObject |
initialize(IRubyObject[] args,
Block block)
rb_hash_initialize
|
IRubyObject |
inspect()
rb_obj_inspect
call-seq:
obj.inspect => string
Returns a string containing a human-readable representation of
obj.
|
IRubyObject |
inspect(ThreadContext context)
rb_hash_inspect
|
IRubyObject |
inspect19(ThreadContext context)
Deprecated.
|
protected RubyHash.RubyHashEntry |
internalDelete(IRubyObject key) |
protected RubyHash.RubyHashEntry |
internalDeleteEntry(RubyHash.RubyHashEntry entry) |
protected IRubyObject |
internalGet(IRubyObject key) |
protected RubyHash.RubyHashEntry |
internalGetEntry(IRubyObject key) |
protected IRubyObject |
internalJavaPut(IRubyObject key,
IRubyObject value) |
protected void |
internalPut(IRubyObject key,
IRubyObject value,
boolean checkForExisting) |
protected IRubyObject |
internalPutNoResize(IRubyObject key,
IRubyObject value,
boolean checkForExisting) |
protected void |
internalPutSmall(IRubyObject key,
IRubyObject value,
boolean checkForExisting)
Deprecated.
|
RubyHash |
invert(ThreadContext context)
rb_hash_invert
|
protected boolean |
isComparedByIdentity()
Is this object compared by identity or not? Shortcut for doing
getFlag(COMPARE_BY_IDENTITY_F).
|
boolean |
isEmpty() |
IRubyObject |
keep_if(ThreadContext context,
Block block) |
boolean |
keep_ifCommon(ThreadContext context,
Block block) |
IRubyObject |
key(ThreadContext context,
IRubyObject expected) |
RubyArray |
keys() |
RubyArray |
keys(ThreadContext context)
rb_hash_keys
|
java.util.Set |
keySet() |
static void |
marshalTo(RubyHash hash,
MarshalStream output) |
RubyHash |
merge_bang(ThreadContext context,
IRubyObject other,
Block block)
rb_hash_update
|
RubyHash |
merge_bang19(ThreadContext context,
IRubyObject other,
Block block)
Deprecated.
|
RubyHash |
merge(ThreadContext context,
IRubyObject other,
Block block)
rb_hash_merge
|
void |
modify()
rb_hash_modify
|
static RubyHash |
newHash(Ruby runtime)
rb_hash_new
|
static RubyHash |
newHash(Ruby runtime,
java.util.Map valueMap,
IRubyObject defaultValue)
rb_hash_new
|
static RubyHash |
newKwargs(Ruby runtime,
java.lang.String key,
IRubyObject value) |
static RubyHash |
newSmallHash(Ruby runtime)
rb_hash_new
|
IRubyObject |
op_aref(ThreadContext context,
IRubyObject key)
rb_hash_aref
|
IRubyObject |
op_aset(IRubyObject key,
IRubyObject value)
Deprecated.
|
IRubyObject |
op_aset(ThreadContext context,
IRubyObject key,
IRubyObject value)
rb_hash_aset
|
IRubyObject |
op_aset19(ThreadContext context,
IRubyObject key,
IRubyObject value)
Deprecated.
|
protected void |
op_asetForString(Ruby runtime,
RubyString key,
IRubyObject value) |
protected void |
op_asetSmallForString(Ruby runtime,
RubyString key,
IRubyObject value) |
IRubyObject |
op_eql(ThreadContext context,
IRubyObject other)
rb_hash_eql
|
IRubyObject |
op_eql19(ThreadContext context,
IRubyObject other)
Deprecated.
|
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other)
rb_hash_equal
|
IRubyObject |
op_ge(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_gt(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_le(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_lt(ThreadContext context,
IRubyObject other) |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map map) |
IRubyObject |
rassoc(ThreadContext context,
IRubyObject obj) |
RubyHash |
rb_clear()
rb_hash_clear
|
RubyFixnum |
rb_size()
rb_hash_size
|
RubyArray |
rb_values() |
IRubyObject |
rbClone(ThreadContext context) |
RubyHash |
rehash()
rb_hash_rehash
|
IRubyObject |
reject_bang(ThreadContext context,
Block block) |
IRubyObject |
reject_bangInternal(ThreadContext context,
Block block)
rb_hash_reject_bang
|
IRubyObject |
reject(ThreadContext context,
Block block) |
RubyHash |
rejectInternal(ThreadContext context,
Block block)
rb_hash_reject
|
java.lang.Object |
remove(java.lang.Object key) |
RubyHash |
replace(ThreadContext context,
IRubyObject other)
rb_hash_replace
|
RubyHash |
replace19(ThreadContext context,
IRubyObject other)
Deprecated.
|
IRubyObject |
select_bang(ThreadContext context,
Block block) |
IRubyObject |
select(ThreadContext context,
Block block)
rb_hash_select
|
IRubyObject |
select19(ThreadContext context,
Block block)
Deprecated.
|
IRubyObject |
set_default_proc(IRubyObject proc)
rb_hash_set_default_proc
|
IRubyObject |
set_default_proc20(IRubyObject proc)
Deprecated.
|
void |
setComparedByIdentity(boolean comparedByIdentity)
Sets whether this object is compared by identity or not.
|
IRubyObject |
shift(ThreadContext context)
rb_hash_shift
|
int |
size() |
RubyHash |
slice(ThreadContext context,
IRubyObject[] args)
rb_hash_slice
|
IRubyObject |
sort(ThreadContext context,
Block block)
Deprecated.
|
RubyArray |
to_a()
rb_hash_to_a
|
RubyHash |
to_h(ThreadContext context) |
RubyHash |
to_hash()
rb_hash_to_hash
|
IRubyObject |
to_proc(ThreadContext context) |
IRubyObject |
to_s(ThreadContext context)
rb_hash_to_s & to_s_hash
|
IRubyObject |
to_s19(ThreadContext context) |
IRubyObject |
transform_keys_bang(ThreadContext context,
Block block) |
IRubyObject |
transform_keys(ThreadContext context,
Block block) |
IRubyObject |
transform_values_bang(ThreadContext context,
Block block) |
IRubyObject |
transform_values(ThreadContext context,
Block block) |
static IRubyObject |
try_convert(ThreadContext context,
IRubyObject recv,
IRubyObject args) |
static RubyHash |
unmarshalFrom(UnmarshalStream input,
boolean defaultValue) |
RubyArray |
values_at(ThreadContext context,
IRubyObject[] args)
rb_hash_values_at
|
java.util.Collection |
values() |
RubyArray |
values(ThreadContext context)
rb_hash_values
|
void |
visitAll(RubyHash.Visitor visitor)
Deprecated.
|
<T> void |
visitAll(ThreadContext context,
RubyHash.VisitorWithState visitor,
T state) |