@Override
 public MultiDouble getSplittedValue(IRow row) {
   if (cacheMulti.containsKey(row.getIndex())) return (MultiDouble) cacheMulti.get(row.getIndex());
   double[] s = new double[this.size()];
   for (int i = 0; i < s.length; ++i) {
     s[i] = ((IDoubleRankableColumnMixin) get(i)).applyPrimitive(row);
   }
   MultiDouble f = new MultiDouble(-1, s);
   cacheMulti.put(row.getIndex(), f);
   return f;
 }
Esempio n. 2
0
  public HashMap<String, RunsafeInventory> getKits() {
    HashMap<String, RunsafeInventory> kits = new HashMap<String, RunsafeInventory>(0);

    for (IRow row : database.query("SELECT `ID`, `inventory` FROM `toolbox_kits`")) {
      RunsafeInventory inventory = server.createInventory(null, 36);
      inventory.unserialize(row.String("inventory"));
      kits.put(row.String("ID"), inventory);
    }

    return kits;
  }