Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
big-data
ohsome
oshdb-examples
Commits
9568226e
Verified
Commit
9568226e
authored
Jul 19, 2021
by
Johannes Visintini
Browse files
use EnumMap instead of HashMap for ContributionTypes
parent
042bf61a
Pipeline
#2511
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/main/java/org/heigit/ohsome/oshdb/tutorial/AdvandcedExample.java
View file @
9568226e
package
org.heigit.ohsome.oshdb.tutorial
;
import
java.util.Arrays
;
import
java.util.
Hash
Map
;
import
java.util.
Enum
Map
;
import
java.util.Map
;
import
java.util.SortedMap
;
import
org.heigit.ohsome.oshdb.OSHDBTimestamp
;
...
...
@@ -62,7 +62,7 @@ public class AdvandcedExample {
@Override
public
Map
<
ContributionType
,
Integer
>
get
()
{
//create an empty result-map
Map
<
ContributionType
,
Integer
>
result
=
new
Hash
Map
<>();
Map
<
ContributionType
,
Integer
>
result
=
new
Enum
Map
<>(
ContributionType
.
class
);
//fill with 0 values
Arrays
.
asList
(
ContributionType
.
values
())
.
forEach
(
...
...
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