Exemplo n.º 1
0
 /*
 public V get(Object oKey) {
     K key = null;
     try {
         key = (K)oKey;
     } catch (Exception ex) { throwRuntimeException(new Exception("Can't do get in MapArray. Key have wrong type")); }
     return get(key);
 }*/
 public V get(K key) {
   Pair<K, V> first = null;
   try {
     first = LinqUtils.first(pairs, pair -> pair.key.equals(key));
   } catch (Exception ignore) {
   }
   return (first != null) ? first.value : null;
 }