Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tok-chef
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine HAZEBROUCK
tok-chef
Commits
6f88215f
Commit
6f88215f
authored
Sep 11, 2024
by
Antoine Hazebrouck
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gvipers.imt-nord-europe.fr/antoine.hazebrouck/tok-chef
parents
7d1e0678
09fece05
Pipeline
#2877
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
146 additions
and
0 deletions
+146
-0
Autre.java
src/main/java/imt/ingredients/Autre.java
+32
-0
Epice.java
src/main/java/imt/ingredients/Epice.java
+22
-0
Ingredient.java
src/main/java/imt/ingredients/Ingredient.java
+32
-0
Legume.java
src/main/java/imt/ingredients/Legume.java
+32
-0
ViandePoisson.java
src/main/java/imt/ingredients/ViandePoisson.java
+28
-0
No files found.
src/main/java/imt/ingredients/Autre.java
0 → 100644
View file @
6f88215f
package
imt
.
ingredients
;
public
class
Autre
extends
Ingredient
{
private
int
calories
;
private
boolean
bio
;
public
Autre
(
int
idIngredient
,
String
nomIngredient
,
int
calories
,
boolean
bio
)
{
super
(
idIngredient
,
nomIngredient
);
this
.
calories
=
calories
;
this
.
bio
=
bio
;
}
public
int
getCalories
()
{
return
calories
;
}
public
void
setCalories
(
int
calories
)
{
this
.
calories
=
calories
;
}
public
boolean
getBio
()
{
return
bio
;
}
public
void
setBio
(
boolean
bio
)
{
this
.
bio
=
bio
;
}
public
String
toString
()
{
return
"Autre [calories="
+
calories
+
", bio="
+
bio
+
", idIngredient="
+
getIdIngredient
()
+
", nomIngredient="
+
getNomIngredient
()
+
"]"
;
}
}
src/main/java/imt/ingredients/Epice.java
0 → 100644
View file @
6f88215f
package
imt
.
ingredients
;
public
class
Epice
extends
Ingredient
{
private
Boolean
bio
;
public
Epice
(
int
idIngredient
,
String
nomIngredient
,
Boolean
bio
)
{
super
(
idIngredient
,
nomIngredient
);
this
.
bio
=
bio
;
}
public
Boolean
getBio
()
{
return
bio
;
}
public
void
setBio
(
Boolean
bio
)
{
this
.
bio
=
bio
;
}
public
String
toString
()
{
return
"Epice [bio="
+
bio
+
", idIngredient="
+
getIdIngredient
()
+
", nomIngredient="
+
getNomIngredient
()
+
"]"
;
}
}
src/main/java/imt/ingredients/Ingredient.java
0 → 100644
View file @
6f88215f
package
imt
.
ingredients
;
public
class
Ingredient
{
private
int
idIngredient
;
private
String
nomIngredient
;
public
Ingredient
(
int
idIngredient
,
String
nomIngredient
)
{
this
.
idIngredient
=
idIngredient
;
this
.
nomIngredient
=
nomIngredient
;
}
public
int
getIdIngredient
()
{
return
idIngredient
;
}
public
void
setIdIngredient
(
int
idIngredient
)
{
this
.
idIngredient
=
idIngredient
;
}
public
String
getNomIngredient
()
{
return
nomIngredient
;
}
public
void
setNomIngredient
(
String
nomIngredient
)
{
this
.
nomIngredient
=
nomIngredient
;
}
public
String
toString
()
{
return
"Ingredient [idIngredient="
+
idIngredient
+
", nomIngredient="
+
nomIngredient
+
"]"
;
}
}
src/main/java/imt/ingredients/Legume.java
0 → 100644
View file @
6f88215f
package
imt
.
ingredients
;
public
class
Legume
extends
Ingredient
{
private
int
calories
;
private
boolean
bio
;
public
Legume
(
int
idIngredient
,
String
nomIngredient
,
int
calories
,
boolean
bio
)
{
super
(
idIngredient
,
nomIngredient
);
this
.
calories
=
calories
;
this
.
bio
=
bio
;
}
public
int
getCalories
()
{
return
calories
;
}
public
void
setCalories
(
int
calories
)
{
this
.
calories
=
calories
;
}
public
boolean
getBio
()
{
return
bio
;
}
public
void
setBio
(
boolean
bio
)
{
this
.
bio
=
bio
;
}
public
String
toString
()
{
return
"Legume [calories="
+
calories
+
", bio="
+
bio
+
", idIngredient="
+
getIdIngredient
()
+
", nomIngredient="
+
getNomIngredient
()
+
"]"
;
}
}
src/main/java/imt/ingredients/ViandePoisson.java
0 → 100644
View file @
6f88215f
package
imt
.
ingredients
;
public
class
ViandePoisson
extends
Ingredient
{
private
int
calories
;
private
int
gras
;
public
ViandePoisson
(
int
idIngredient
,
String
nomIngredient
,
Boolean
bio
)
{
super
(
idIngredient
,
nomIngredient
);
}
public
int
getCalories
()
{
return
calories
;
}
public
void
setCalories
(
int
calories
)
{
this
.
calories
=
calories
;
}
public
int
getGras
()
{
return
gras
;
}
public
void
setGras
(
int
gras
)
{
this
.
gras
=
gras
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment