Package org.asciidoctor.jruby.internal
Class RubyHashMapDecorator
java.lang.Object
org.asciidoctor.jruby.internal.RubyHashMapDecorator
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRubyHashMapDecorator(org.jruby.RubyHash rubyHash) RubyHashMapDecorator(org.jruby.RubyHash rubyHash, Class rubyKeyType) Wrap a RubyHash map that uses a key of type `rubyKeyType`. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
RubyHashMapDecorator
public RubyHashMapDecorator(org.jruby.RubyHash rubyHash) -
RubyHashMapDecorator
Wrap a RubyHash map that uses a key of type `rubyKeyType`. Regardless of `rubyKeyType`, the wrapper will always use Java String as the exposed key type and coerce internally as appropriate.- Parameters:
rubyHash- hash map to wraprubyKeyType- key type, valid values: RubySymbol.class or String.class
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-