Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NUI
TULIP-CPS
Commits
cac891e3
Commit
cac891e3
authored
Jun 19, 2020
by
Nico Mack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added convenience duplicate method
parent
8af4ee59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
CPS/src/lu/list/itis/dkd/tui/cps/variable/VectorVariable.java
...src/lu/list/itis/dkd/tui/cps/variable/VectorVariable.java
+7
-0
No files found.
CPS/src/lu/list/itis/dkd/tui/cps/variable/VectorVariable.java
View file @
cac891e3
...
@@ -104,6 +104,13 @@ public class VectorVariable<B> extends Variable<List<B>> implements List<B> {
...
@@ -104,6 +104,13 @@ public class VectorVariable<B> extends Variable<List<B>> implements List<B> {
return
variable
;
return
variable
;
}
}
public
boolean
duplicate
(
VectorVariable
<
B
>
target
)
{
List
<
B
>
copied
=
new
ArrayList
<>();
copied
.
addAll
(
target
.
getValue
());
this
.
setValue
(
copied
);
return
true
;
}
/** {@inheritDoc} */
/** {@inheritDoc} */
@Override
@Override
public
int
size
()
{
public
int
size
()
{
...
...
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