Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
monticore
EmbeddedMontiArc
simulators
commons
Commits
a4045bb4
Commit
a4045bb4
authored
3 years ago
by
Evgeny Kusmenko
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into 'master'
collision log See merge request
!15
parents
ecd63c43
7a475cd3
Branches
Branches containing commit
No related tags found
1 merge request
!15
collision log
Pipeline
#639305
passed
3 years ago
Stage: linux
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/main/java/de/rwth/montisim/commons/utils/Triplet.java
+27
-0
27 additions, 0 deletions
src/main/java/de/rwth/montisim/commons/utils/Triplet.java
with
28 additions
and
1 deletion
pom.xml
+
1
−
1
View file @
a4045bb4
...
...
@@ -8,7 +8,7 @@
<groupId>
montisim
</groupId>
<artifactId>
commons
</artifactId>
<version>
2.1.
3
</version>
<version>
2.1.
4
</version>
<properties>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/rwth/montisim/commons/utils/Triplet.java
0 → 100644
+
27
−
0
View file @
a4045bb4
package
de.rwth.montisim.commons.utils
;
public
class
Triplet
<
Type1
,
Type2
,
Type3
>{
public
final
Type1
x
;
public
final
Type2
y
;
public
final
Type3
z
;
public
Triplet
(
Type1
x
,
Type2
y
,
Type3
z
){
this
.
x
=
x
;
this
.
y
=
y
;
this
.
z
=
z
;
}
public
Object
getAt
(
int
index
){
if
(
index
==
0
)
return
(
Object
)
this
.
x
;
if
(
index
==
1
)
return
(
Object
)
this
.
y
;
if
(
index
==
2
)
return
(
Object
)
this
.
z
;
throw
new
IndexOutOfBoundsException
(
"Accessing triplet at index: "
+
index
);
}
public
boolean
equals
(
Triplet
compare
){
if
(!
x
.
equals
(
compare
.
x
))
return
false
;
if
(!
y
.
equals
(
compare
.
y
))
return
false
;
if
(!
z
.
equals
(
compare
.
z
))
return
false
;
return
true
;
}
}
\ No newline at end of file
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