Beispiel #1
0
 public int contains(String key_str, long value) {
   try {
     return bind_.contains(Long.parseLong(key_str), value);
   } catch (NumberFormatException nfex) {
     return 0;
   }
 }
Beispiel #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;
   }
 }
Beispiel #3
0
 public boolean putIfNotPresent(String key_str, long value) {
   try {
     return bind_.putIfNotPresent(Long.parseLong(key_str), value);
   } catch (NumberFormatException nfex) {
     return false;
   }
 }
Beispiel #4
0
 public long get(String key_str) {
   try {
     return bind_.get(Long.parseLong(key_str));
   } catch (NumberFormatException nfex) {
     return NULL_BIND;
   }
 }