InfraRuby Vision delivers solutions for mobile and web applications.
You can try InfraRuby live in your browser!
Try the InfraRuby statically typed Ruby compiler live in your browser. Try our examples or write your own code.
Follow @InfraRuby on Twitter for news and updates.

Hash

class Hash<K: java.lang.Object?, V: java.lang.Object?> extends Object

class methods

  • new
    <K: java.lang.Object?, V: java.lang.Object?> -> Hash<K, V>
    <K: java.lang.Object?, V: java.lang.Object?> &(Hash<K, V>, java.lang.Object? -> V?) -> Hash<K, V>
    <K: java.lang.Object?, V: java.lang.Object?> V? -> Hash<K, V>

instance methods

  • []
    java.lang.Object? -> V?
  • []=
    K, V -> void
  • ==
    java.lang.Object? -> boolean
  • !=
    java.lang.Object? -> boolean
  • ===
    java.lang.Object? -> boolean
  • all?
    &{K, V -> boolean} -> boolean
  • any?
    &{K, V -> boolean} -> boolean
  • clear
    -> void
  • delete
    java.lang.Object? -> V?
  • delete_if
    &{K, V -> boolean} -> void
  • each
    -> Enumerator<[K, V]>
    &{K, V -> void} -> void
  • each_key
    -> Enumerator<K>
    &{K -> void} -> void
  • each_value
    -> Enumerator<V>
    &{V -> void} -> void
  • empty?
    -> boolean
  • eql?
    java.lang.Object? -> boolean
  • fetch
    java.lang.Object? -> V
    java.lang.Object?, V -> V
    java.lang.Object?, &{-> V} -> V
  • first
    -> [K, V]?
  • first!
    -> [K, V]
  • freeze
    -> self
  • frozen?
    -> boolean
  • has_key?
    java.lang.Object? -> boolean
  • has_value?
    java.lang.Object? -> boolean
  • hash
    -> Integer
  • inspect
    -> String
  • key
    java.lang.Object? -> K?
  • key?
    java.lang.Object? -> boolean
  • keys
    -> Array<K>
  • map
    <T: java.lang.Object?> &{K, V -> T} -> Array<T>
  • merge
    Hash<*\K, *\V> -> Hash<K, V>
  • merge!
    Hash<*\K, *\V> -> void
  • reject
    &{K, V -> boolean} -> Hash<K, V>
  • reject!
    &{K, V -> boolean} -> void
  • replace
    Hash<*\K, *\V> -> void
  • select
    &{K, V -> boolean} -> Hash<K, V>
  • select!
    &{K, V -> boolean} -> void
  • shift
    -> [K, V]?
  • shift!
    -> [K, V]
  • size
    -> Integer
  • size_as_int32
    -> int32
  • to_enum
    -> Enumerator<[K, V]>
  • to_hash
    -> Hash<K, V>
  • to_json
    -> String
  • to_s
    -> String
  • value?
    java.lang.Object? -> boolean
  • values
    -> Array<V>
Follow @InfraRuby on Twitter
Copyright © 2011-2017 InfraRuby Vision Limited