src/Utils.rb
# Search the element of hashmap and return the finding elements in hashmap
#
# @param asig [String, #read] the asig of element
# @param apunte [String, #read] the name of element
# @param links [hashmap, #read] the hashmap of elements
# @return [Hashmap] the hashmap of the finding elements

Search the element of hashmap and return the finding elements in hashmap
Search the element of hashmap and return the finding elements in hashmap
def searchIntoJson(asig, apunte, links)
    key="#{asig}-#{apunte}"
    map={}
    links.map{|k, v|
      if(k.include? key)
        map[k] = v
      end
      }
    if !map.empty?
      return map
    else
      return links
    end
  end
def searchIntoJson ( asig , apunte , links ) key = "#{asig}-#{apunte}" map = { } links . map { | k , v | if ( k . include? key ) map [ k ] = v end } if ! map . empty? return map else return links end end
Search the element of hashmap and return the finding elements in hashmap
Search the element of hashmap and return the finding elements in hashmap
the hashmap of the finding elements
the hashmap of the finding elements
Hashmap
asig
the asig of element
the asig of element
apunte
the name of element
the name of element
links
the hashmap of elements
the hashmap of elements