class Vertx::SharedData::SharedHash

@private

Public Class Methods

new(hash) click to toggle source
Calls superclass method
# File lib/vertx/shared_data.rb, line 81
def initialize(hash)
  @hash = hash
  # Pass the object to be delegated to the superclass.
  super(@hash)
end

Public Instance Methods

==(other) click to toggle source
# File lib/vertx/shared_data.rb, line 102
def ==(other)
  if other.is_a?(SharedHash)
    @hash.equal?(other._to_java_map)
  else
    false
  end
end
[](key) click to toggle source
# File lib/vertx/shared_data.rb, line 95
def [](key)
  # We call the java class directly
  obj = @hash.get(key)
  obj = Buffer.new(obj) if obj.is_a? org.vertx.java.core.buffer.Buffer
  obj
end
[]=(key, val) click to toggle source
Calls superclass method
# File lib/vertx/shared_data.rb, line 87
def []=(key, val)
  key = SharedData.check_obj(key)
  val = SharedData.check_obj(val)
  super(key, val)
end
Also aliased as: store
_to_java_map() click to toggle source
# File lib/vertx/shared_data.rb, line 110
def _to_java_map
  @hash
end
store(key, val)
Alias for: []=