Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JSON
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zanetti Alex (Student Com20)
JSON
Commits
4b7d3564
Commit
4b7d3564
authored
3 years ago
by
Marco Sciacovelli
Browse files
Options
Downloads
Patches
Plain Diff
changes part 2
parent
b7b28fe8
Branches
master
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/Event.java
+107
-1
107 additions, 1 deletion
src/main/java/Event.java
src/main/java/GeoShape.java
+2
-8
2 additions, 8 deletions
src/main/java/GeoShape.java
with
109 additions
and
9 deletions
src/main/java/Event.java
+
107
−
1
View file @
4b7d3564
import
java.util.Arrays
;
import
java.util.HashMap
;
public
class
Event
{
public
class
Event
{
}
private
static
final
String
TYPE
=
"events"
;
private
String
id
;
private
HashMap
<
String
,
String
>
names
;
private
String
description
;
private
String
url
;
private
boolean
isFree
;
private
String
startDate
;
private
String
endDate
;
private
String
[]
categories
;
public
Event
(
String
id
,
HashMap
<
String
,
String
>
names
,
String
description
,
String
url
,
boolean
isFree
,
String
startDate
,
String
endDate
,
String
[]
categories
)
{
this
.
id
=
id
;
this
.
names
=
names
;
this
.
description
=
description
;
this
.
url
=
url
;
this
.
isFree
=
isFree
;
this
.
startDate
=
startDate
;
this
.
endDate
=
endDate
;
this
.
categories
=
categories
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
HashMap
<
String
,
String
>
getNames
()
{
return
names
;
}
public
void
setNames
(
HashMap
<
String
,
String
>
names
)
{
this
.
names
=
names
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
boolean
isFree
()
{
return
isFree
;
}
public
void
setFree
(
boolean
free
)
{
isFree
=
free
;
}
public
String
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
String
startDate
)
{
this
.
startDate
=
startDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
[]
getCategories
()
{
return
categories
;
}
public
void
setCategories
(
String
[]
categories
)
{
this
.
categories
=
categories
;
}
@Override
public
String
toString
()
{
return
"Event with the id: "
+
id
+
", names="
+
names
+
", description='"
+
description
+
", url='"
+
url
+
", isFree="
+
isFree
+
", startDate='"
+
startDate
+
", endDate='"
+
endDate
+
", categories="
+
Arrays
.
toString
(
categories
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/GeoShape.java
+
2
−
8
View file @
4b7d3564
import
java.util.Arrays
;
import
java.util.Arrays
;
public
class
GeoShape
{
public
class
GeoShape
{
private
static
final
String
TYPE
=
"geoShapes"
;
private
String
type
;
private
String
type
;
private
double
[]
coordinates
;
private
double
[]
coordinates
;
...
@@ -9,14 +11,6 @@ public class GeoShape {
...
@@ -9,14 +11,6 @@ public class GeoShape {
this
.
coordinates
=
coordinates
;
this
.
coordinates
=
coordinates
;
}
}
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
double
[]
getCoordinates
()
{
public
double
[]
getCoordinates
()
{
return
coordinates
;
return
coordinates
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment