Samples JDK
List of all members | Classes | Public Member Functions | Static Public Attributes
com.freemindcafe.java8.sample1.Dish Class Reference

Classes

enum  Type
 

Public Member Functions

 Dish (String name, boolean vegetarian, int calories, Type type)
 
String getName ()
 
boolean isVegetarian ()
 
int getCalories ()
 
Type getType ()
 
String toString ()
 

Static Public Attributes

static final List< Dishmenu
 

Member Data Documentation

final List<Dish> com.freemindcafe.java8.sample1.Dish.menu
static
Initial value:
=
Arrays.asList( new Dish("pork", false, 800, Dish.Type.MEAT),
new Dish("beef", false, 700, Dish.Type.MEAT),
new Dish("chicken", false, 400, Dish.Type.MEAT),
new Dish("french fries", true, 530, Dish.Type.OTHER),
new Dish("rice", true, 350, Dish.Type.OTHER),
new Dish("season fruit", true, 120, Dish.Type.OTHER),
new Dish("pizza", true, 550, Dish.Type.OTHER),
new Dish("prawns", false, 400, Dish.Type.FISH),
new Dish("salmon", false, 450, Dish.Type.FISH))

Definition at line 43 of file Dish.java.


The documentation for this class was generated from the following file: