Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
semint-kprime-arm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Pedot Nicola
semint-kprime-arm
Commits
51c4e98f
Commit
51c4e98f
authored
4 years ago
by
npedot
Browse files
Options
Downloads
Patches
Plain Diff
changes for labeller
parent
e88cec43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/unibz.cs.semint.kprime/domain/ddl/Labeller.kt
+4
-4
4 additions, 4 deletions
...main/kotlin/unibz.cs.semint.kprime/domain/ddl/Labeller.kt
with
4 additions
and
4 deletions
src/main/kotlin/unibz.cs.semint.kprime/domain/ddl/Labeller.kt
+
4
−
4
View file @
51c4e98f
...
...
@@ -2,12 +2,12 @@ package unibz.cs.semint.kprime.domain.ddl
class
Labeller
:
Labelled
{
private
lateinit
var
labels
:
MutableList
<
Label
>
private
var
labels
:
MutableList
<
Label
>
?
=
null
override
fun
resetLabels
(
labelsAsString
:
String
):
String
{
if
(
labels
==
null
)
labels
=
mutableListOf
()
else
labels
.
clear
()
else
labels
?
.
clear
()
addLabels
(
labelsAsString
)
return
labelsAsString
()
}
...
...
@@ -15,14 +15,14 @@ class Labeller: Labelled {
override
fun
addLabels
(
labelsAsString
:
String
):
String
{
if
(
labels
==
null
)
labels
=
mutableListOf
()
labels
.
addAll
(
labelsAsString
.
split
(
","
))
labels
?
.
addAll
(
labelsAsString
.
split
(
","
))
return
labelsAsString
()
}
override
fun
addLabels
(
newLabels
:
List
<
Label
>):
String
{
if
(
labels
==
null
)
labels
=
mutableListOf
()
labels
.
addAll
(
newLabels
)
labels
?
.
addAll
(
newLabels
)
return
labelsAsString
()
}
...
...
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