Пример #1
0
 public int contains(String key_str, long value) {
   try {
     return bind_.contains(Long.parseLong(key_str), value);
   } catch (NumberFormatException nfex) {
     return 0;
   }
 }
Пример #2
0
 public long put(String key_str, long value) {
   try {
     return bind_.put(Long.parseLong(key_str), value);
   } catch (NumberFormatException nfex) {
     return NULL_BIND;
   }
 }
Пример #3
0
 public boolean putIfNotPresent(String key_str, long value) {
   try {
     return bind_.putIfNotPresent(Long.parseLong(key_str), value);
   } catch (NumberFormatException nfex) {
     return false;
   }
 }
Пример #4
0
 public long get(String key_str) {
   try {
     return bind_.get(Long.parseLong(key_str));
   } catch (NumberFormatException nfex) {
     return NULL_BIND;
   }
 }