Skip to content
Snippets Groups Projects
Select Git revision
  • 80ca5fc805ccc599c6f3c6b7054b7d23e981633b
  • master default
  • autorisation_visit
  • signup_mydata
  • format_editData
  • dev
  • authorize-valid-profile
  • feli90-patch-2
  • feli90-patch-1
  • context_sheet
  • testNewForm
  • FeliLocalTest1
  • ios-account-fix
  • change-form-link
  • dev_pages_projet
  • remise_sorties
  • release/first-users
17 results

overview.component.html

Blame
  • FactoryMeal.java NaN GiB
    package Item;
    
    import Exception.ExceptionUnknownMealType;
    
    public class FactoryMeal {
    
    	public Meal createMeal(String typeOfMeal) throws ExceptionUnknownMealType{
    		typeOfMeal=typeOfMeal.toLowerCase().trim();
    		switch(typeOfMeal){
    			case "halfmeal":
    				return new HalfMeal("typeOfMeal","standard");
    			case "fullmeal":
    				return new FullMeal("typeOfMeal","standard");
    			default:
    				throw new ExceptionUnknownMealType("Error, '"+typeOfMeal+"' is unkwon, try HalfMeal or FullMeal.");
    		}
    	}
    
    }