labwork04 UP!
This commit is contained in:
parent
48da449924
commit
a180fa3b0a
@ -27,7 +27,13 @@ public class StorageCollection<T extends Object> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public T GetShip(String name, int ind){
|
||||||
|
if (name == null || !storage.containsKey(name)) return null;
|
||||||
|
return storage.get(name).get(ind);
|
||||||
|
}
|
||||||
|
|
||||||
public void delCollection(String name) {
|
public void delCollection(String name) {
|
||||||
|
if(!storage.containsKey(name)) return;
|
||||||
storage.remove(name);
|
storage.remove(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user