public Building_Floor removeFloorAtFloorNumber(int floorNumber) { Building_Floor tbr = mFloors[floorNumber]; mFloors.Remove(floorNumber); return(tbr); }
/** * * @param newFloor * @return True, if the floor was added (i.e., it had a new floor number); false otherwise */ public bool addFloor(Building_Floor newFloor) { if (!mFloors.ContainsKey(newFloor.getFloorNumber())) { mFloors.Add(newFloor.getFloorNumber(), newFloor); return(true); } return(false); }
/** * * @param newFloor * @return True, if the floor was added (i.e., it had a new floor number); false otherwise */ public bool addFloor(Building_Floor newFloor) { if (!mFloors.ContainsKey(newFloor.getFloorNumber())) { mFloors.Add(newFloor.getFloorNumber(), newFloor); return true; } return false; }