java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyHash
org.jruby.RubyHashLinkedBuckets
org.jruby.RubyGlobal.StringOnlyRubyHash
org.jruby.RubyGlobal.CaseInsensitiveStringOnlyRubyHash
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,Map,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
- Enclosing class:
RubyGlobal
public static class RubyGlobal.CaseInsensitiveStringOnlyRubyHash
extends RubyGlobal.StringOnlyRubyHash
Obligate string-keyed and string-valued hash, used for ENV.
On Windows, the keys are case-insensitive for ENV
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jruby.RubyHash
RubyHash.RubyHashEntry, RubyHash.Visitor, RubyHash.VisitorIOException, RubyHash.VisitorWithState<T>, RubyHash.VisitorWithStateINested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
Fields inherited from class org.jruby.RubyHashLinkedBuckets
MRI_PRIMES, sizeFields inherited from class org.jruby.RubyHash
COMPARE_BY_IDENTITY, DEFAULT_INSPECT_STR_SIZE, NO_ENTRY, NULL_ENTRY, PROCDEFAULT_HASH, RUBY2_KEYWORD, state, StoreValueVisitorFields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
ALL_F, BASICOBJECT_ALLOCATOR, ERR_INSECURE_SET_INST_VAR, FALSE_F, flags, FROZEN_F, metaClass, NEVER, NIL_F, STAMP_OFFSET, TAINTED_F, UNDEF, VAR_TABLE_OFFSET, varTable, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveStringOnlyRubyHash(Ruby runtime, Map<RubyString, RubyString> valueMap, IRubyObject defaultValue, boolean updateRealENV) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendAssociation(boolean keyIsSymbol, ByteList bytes) Append appropriate characters to indicate association (": " vs " => ").assoc(ThreadContext context, IRubyObject obj) delete(ThreadContext context, IRubyObject key, Block block) rb_hash_deletedup(ThreadContext context) RubyMethod dup.each(ThreadContext context, Block block) fetch(ThreadContext context, IRubyObject[] args, Block block) rb_hash_fetchfetch(ThreadContext context, IRubyObject key, Block block) freeze(ThreadContext context) has_key_p(ThreadContext context, IRubyObject key) rb_hash_has_keyhas_value_pp(ThreadContext context, IRubyObject expected) index(ThreadContext context, IRubyObject expected) Deprecated.protected final booleankey(ThreadContext context, IRubyObject expected) keys(ThreadContext context) rb_hash_keysop_aref(ThreadContext context, IRubyObject arg) rb_hash_arefrassoc(ThreadContext context, IRubyObject obj) rbClone(ThreadContext context) rbClone(ThreadContext context, IRubyObject _opts) rehash1(ThreadContext context) replace(ThreadContext context, IRubyObject other) rb_hash_replaceprotected voidreplaceWith(ThreadContext context, RubyHash otherHash) shift(ThreadContext context) rb_hash_shiftto_h(ThreadContext context, Block block) to_s(ThreadContext context) rb_hash_to_s & to_s_hashMethods inherited from class org.jruby.RubyGlobal.StringOnlyRubyHash
getCorrectKey, internalGet, isStringLike, newName, newString, newString, newString, op_aset, to_hash, verifyStringLikeMethods inherited from class org.jruby.RubyHashLinkedBuckets
addAll, allSymbols, any_p, any_p, any_p_i, any_p_i_fast, any_p_p, checkIterating, clear, compact, compact_bang, compare, compare_by_identity, compare_by_identity_p, containsKey, containsValue, convertToHash, deconstruct_keys, default_proc, default_value_get, default_value_get, default_value_set, delete, delete, delete_if, delete_ifInternal, dig, dig, dig, dig, directEntrySet, directKeySet, directValues, dupFast, each_key, each_keyCommon, each_pairCommon, each_value, each_valueCommon, eachCommon, empty_p, entrySet, equals, except, fastARef, fastASet, fastASet, fastASetCheckString, fastASetSmall, fastASetSmall, fastASetSmallCheckString, fastASetSmallPair, fastDelete, fetch, fetch_values, flatten, flatten, get, get, getIfNone, getJavaClass, has_value_p, hasDefaultProc, hash, hashValue, hasKey, initialize, initialize, initialize, initialize_copy, inspect, inspectHash, internalDelete, internalDeleteEntry, internalGetEntry, internalPut, internalPutNoResize, invert, isComparedByIdentity, isEmpty, isRuby2KeywordHash, keep_if, keep_ifCommon, keys, keySet, marshalTo, merge, merge_bang, modify, newLBHash, newLBHash, newLBHash, newLBHash, newLBHash, op_asetForString, op_asetSmallForString, op_eql, op_equal, op_ge, op_gt, op_le, op_lt, put, putAll, rb_clear, rb_size, rb_values, rehash, reject, reject_bang, reject_bangInternal, rejectInternal, remove, replaceExternally, ruby2_keywords_hash, ruby2_keywords_hash_p, select, select_bang, set, set_default_proc, setComparedByIdentity, setRuby2KeywordHash, size, slice, to_a, to_h_block, to_proc, transform_keys, transform_keys_bang, transform_values, transform_values_bang, unmarshalFrom, values, values, values_at, visitAll, visitAll, visitLimited, withRuby2KeywordsMethods inherited from class org.jruby.RubyHash
create, createHashClass, getNativeClassIndex, marshalTo, marshalTo, newHash, newHash, newHash, newKwargs, newSmallHash, try_convert, unmarshalFrom, visitAllMethods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, dig, dig1, dig2, eqlInternal, equalInternal, finishObjectClass, hashCode, inspect, op_eqq, puts, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
__id__, addFinalizer, addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, cloneSetup, compareTo, convertToArray, convertToFloat, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, dataGetStruct, dataWrapStruct, decode, display, dup, dupFinalizer, dupSetup, ensureInstanceVariablesSettable, eql, eql_p, eql_p, equal_p, evalUnder, extend, finishBasicObjectClass, forEachInstanceVariable, forEachInstanceVariableName, frozen_p, getCurrentContext, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getMarshalVariableList, getMetaClass, getMetaClass, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getSingletonClassCloneAndAttach, getType, getVariable, getVariableList, getVariableNameList, hash, hashyInspect, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize_copy, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, kind_of_p, makeMetaClass, makeMetaClass, makeMetaClassBootstrap, method, method, method, method_missing, methods, nil_p, nonFixnumHashCode, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_cmp, op_match, op_not, op_not_equal, op_not_match, private_methods, protected_methods, public_methods, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setTaint, setVariable, singleton_method, singleton_method, singleton_method_added, singleton_method_removed, singleton_method_undefined, singleton_methods, singletonClass, specificEval, specificEval, specificEval, specificEval, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_s, toJava, type, untaint, validateInstanceVariable, variableTableContains, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jruby.runtime.builtin.IRubyObject
checkStringType19, marshalLiveVariablesMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CaseInsensitiveStringOnlyRubyHash
public CaseInsensitiveStringOnlyRubyHash(Ruby runtime, Map<RubyString, RubyString> valueMap, IRubyObject defaultValue, boolean updateRealENV)
-
-
Method Details
-
isCaseSensitive
protected final boolean isCaseSensitive()- Overrides:
isCaseSensitivein classRubyGlobal.StringOnlyRubyHash
-
op_aref
Description copied from class:RubyHashLinkedBucketsrb_hash_aref- Overrides:
op_arefin classRubyHashLinkedBuckets
-
freeze
- Overrides:
freezein classRubyBasicObject
-
assoc
- Overrides:
associn classRubyHashLinkedBuckets
-
fetch
Description copied from class:RubyHashLinkedBucketsrb_hash_fetch- Overrides:
fetchin classRubyHashLinkedBuckets
-
fetch
- Overrides:
fetchin classRubyHashLinkedBuckets
-
delete
Description copied from class:RubyHashLinkedBucketsrb_hash_delete- Overrides:
deletein classRubyHashLinkedBuckets
-
each
- Overrides:
eachin classRubyHashLinkedBuckets
-
rassoc
- Overrides:
rassocin classRubyHashLinkedBuckets
-
has_key_p
Description copied from class:RubyHashLinkedBucketsrb_hash_has_key- Overrides:
has_key_pin classRubyHashLinkedBuckets
-
has_value_pp
-
index
Deprecated. -
keys
Description copied from class:RubyHashLinkedBucketsrb_hash_keys- Overrides:
keysin classRubyHashLinkedBuckets
-
key
- Overrides:
keyin classRubyHashLinkedBuckets
-
rehash1
-
replace
Description copied from class:RubyHashLinkedBucketsrb_hash_replace- Overrides:
replacein classRubyHashLinkedBuckets
-
shift
Description copied from class:RubyHashLinkedBucketsrb_hash_shift- Overrides:
shiftin classRubyHashLinkedBuckets
-
to_s
Description copied from class:RubyHashLinkedBucketsrb_hash_to_s & to_s_hash- Overrides:
to_sin classRubyHashLinkedBuckets
-
to_h
- Overrides:
to_hin classRubyHashLinkedBuckets
-
rbClone
- Overrides:
rbClonein classRubyHashLinkedBuckets
-
rbClone
- Overrides:
rbClonein classRubyHashLinkedBuckets
-
dup
Description copied from interface:IRubyObjectRubyMethod dup.- Specified by:
dupin interfaceIRubyObject- Overrides:
dupin classRubyHashLinkedBuckets- Parameters:
context- the thread context- Returns:
- a dup-ed object
-
replaceWith
- Overrides:
replaceWithin classRubyHashLinkedBuckets
-
appendAssociation
Description copied from class:RubyHashLinkedBucketsAppend appropriate characters to indicate association (": " vs " => ").- Overrides:
appendAssociationin classRubyHashLinkedBuckets- Parameters:
keyIsSymbol- is the key a symbolbytes- buffer to which to append
-