done
This commit is contained in:
parent
3f2215296d
commit
7f3735710f
@ -1,42 +0,0 @@
|
||||
package Generics;
|
||||
|
||||
import DrawingObjects.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class CarsGenericStorage {
|
||||
Map<String, CarsGenericCollection<DrawingCar, DrawingObjectCar>> _carStorages;
|
||||
public List<String> Keys;
|
||||
|
||||
public ArrayList Keys(){return new ArrayList<>(_carStorages.keySet());}
|
||||
private int _pictureWidth;
|
||||
private int _pictureHeight;
|
||||
public CarsGenericStorage(int pictureWidth, int pictureHeight)
|
||||
{
|
||||
_carStorages = new HashMap<String,
|
||||
CarsGenericCollection<DrawingCar, DrawingObjectCar>>();
|
||||
_pictureWidth = pictureWidth;
|
||||
_pictureHeight = pictureHeight;
|
||||
}
|
||||
public void AddSet(String name)
|
||||
{
|
||||
_carStorages.put(name, new CarsGenericCollection<DrawingCar, DrawingObjectCar>(_pictureWidth, _pictureHeight));
|
||||
}
|
||||
public void DelSet(String name)
|
||||
{
|
||||
if (!_carStorages.containsKey(name))
|
||||
{
|
||||
return;
|
||||
}
|
||||
_carStorages.remove(name);
|
||||
}
|
||||
public DrawingObjectCar getByIndex(String indexOfDict, int indexOfCollection){
|
||||
if (_carStorages.containsKey(indexOfDict)){
|
||||
return _carStorages.get(indexOfDict).GetU(indexOfCollection);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/*public secondIndex(String index){
|
||||
|
||||
}*/
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user