Exemple #1
0
 public StoreList search(String storeKey, String value) {
   StoreList result = new StoreList();
   String[] keys = this.getKeys();
   for (int i = 0; i < this.size(); i++) {
     Store temp = this.getStore(i);
     if (temp.containsKey(storeKey)) {
       if (value.equals(temp.getString(storeKey))) {
         result.add(keys[i]);
       }
     }
   }
   if (result.size() == 0) {
     return null;
   } else {
     return result;
   }
 }
Exemple #2
0
 public String getString(String key, int index) {
   Store store = (Store) super.get(index);
   return store.getString(key);
 }