Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Projet GORDYJAN_BAGNOLY_GARCIA_POIGNONNEC
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
POIGNONNEC
Projet GORDYJAN_BAGNOLY_GARCIA_POIGNONNEC
Commits
bad020ac
Commit
bad020ac
authored
May 07, 2019
by
Théo GORDYJAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add_enum
parent
7968a17a
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
190 additions
and
98 deletions
+190
-98
description.html
garage/.idea/description.html
+0
-1
encodings.xml
garage/.idea/encodings.xml
+0
-6
misc.xml
garage/.idea/misc.xml
+1
-4
project-template.xml
garage/.idea/project-template.xml
+0
-3
workspace.xml
garage/.idea/workspace.xml
+116
-70
garage.iml
garage/garage.iml
+1
-2
garage.kotlin_module
garage/out/production/garage/META-INF/garage.kotlin_module
+0
-0
Brand.class
garage/out/production/garage/main/Brand.class
+0
-0
EngineType.class
garage/out/production/garage/main/EngineType.class
+0
-0
Main.class
garage/out/production/garage/main/Main.class
+0
-0
Vehicle.class
garage/out/production/garage/main/Vehicle.class
+0
-0
Brand.java
garage/src/main/Brand.java
+34
-3
EngineType.java
garage/src/main/EngineType.java
+38
-0
engineType.java
garage/src/main/engineType.java
+0
-9
No files found.
garage/.idea/description.html
deleted
100644 → 0
View file @
7968a17a
<html>
Simple
<b>
Java
</b>
application that includes a class with
<code>
main()
</code>
method
</html>
\ No newline at end of file
garage/.idea/encodings.xml
deleted
100644 → 0
View file @
7968a17a
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"Encoding"
>
<file
url=
"PROJECT"
charset=
"UTF-8"
/>
</component>
</project>
\ No newline at end of file
garage/.idea/misc.xml
View file @
bad020ac
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectKey"
>
<option
name=
"state"
value=
"project://e2804f05-5315-4fc6-a121-c522a6c26470"
/>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_11"
default=
"true"
project-jdk-name=
"11"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_11"
project-jdk-name=
"11"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/out"
/>
</component>
</project>
\ No newline at end of file
garage/.idea/project-template.xml
deleted
100644 → 0
View file @
7968a17a
<template>
<input-field
default=
"com.company"
>
IJ_BASE_PACKAGE
</input-field>
</template>
\ No newline at end of file
garage/.idea/workspace.xml
View file @
bad020ac
This diff is collapsed.
Click to expand it.
garage/garage.iml
View file @
bad020ac
...
...
@@ -8,5 +8,4 @@
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
</module>
\ No newline at end of file
garage/out/production/garage/META-INF/garage.kotlin_module
0 → 100644
View file @
bad020ac
File added
garage/out/production/garage/main/Brand.class
0 → 100644
View file @
bad020ac
File added
garage/out/production/garage/main/EngineType.class
0 → 100644
View file @
bad020ac
File added
garage/out/production/garage/main/Main.class
View file @
bad020ac
No preview for this file type
garage/out/production/garage/main/Vehicle.class
0 → 100644
View file @
bad020ac
File added
garage/src/main/Brand.java
View file @
bad020ac
...
...
@@ -2,7 +2,38 @@ package main;
public
enum
Brand
{
RENAULT
,
PEUGEOT
,
CITROEN
;
RENAULT
(
"Renault"
),
PEUGEOT
(
"Peugeot"
),
CITROEN
(
"Citroen"
);
private
final
String
value
;
Brand
(
String
value
)
{
this
.
value
=
value
;
}
public
String
getValue
()
{
return
value
;
}
/*
public static Brand getEnum(String value) {
for (Brand brand : Brand.values()) {
if (brand.getValue().equals(value)) {
return brand;
}
}
}
*/
public
static
boolean
contains
(
String
value
)
{
for
(
Brand
brand
:
Brand
.
values
())
{
if
(
brand
.
getValue
().
equals
(
value
))
{
return
true
;
}
}
return
false
;
}
}
garage/src/main/EngineType.java
0 → 100644
View file @
bad020ac
package
main
;
public
enum
EngineType
{
DIESEL
(
"Diesel"
),
PETROL
(
"Petrol"
),
HYBRID
(
"Hybrid"
),
ELECTRIC
(
"Electric"
);
private
final
String
value
;
EngineType
(
String
value
)
{
this
.
value
=
value
;
}
public
String
getValue
()
{
return
value
;
}
/*
public static EngineType getEnum(String value) {
for (EngineType type : EngineType.values()) {
if (type.getValue().equals(value)) {
return type;
}
}
}
*/
public
static
boolean
contains
(
String
value
)
{
for
(
EngineType
type
:
EngineType
.
values
())
{
if
(
type
.
getValue
().
equals
(
value
))
{
return
true
;
}
}
return
false
;
}
}
garage/src/main/engineType.java
deleted
100644 → 0
View file @
7968a17a
package
main
;
public
enum
engineType
{
DIESEL
,
PETROL
,
HYBRID
,
ELECTRIC
;
}
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