Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Verification for Decision Model and Notation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Jonas Blatt
Verification for Decision Model and Notation
Commits
d302bfe9
Commit
d302bfe9
authored
5 years ago
by
Jonas Blatt
Browse files
Options
Downloads
Patches
Plain Diff
New string boundary bicreater: append
parent
f669f5a2
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
dmnverifierapi/src/main/java/de/unikoblenz/fgbks/base/utils/boundary/bicreater/BiCreaterStringAppend.java
+9
-1
9 additions, 1 deletion
.../base/utils/boundary/bicreater/BiCreaterStringAppend.java
with
9 additions
and
1 deletion
dmnverifierapi/src/main/java/de/unikoblenz/fgbks/base/utils/boundary/bicreater/BiCreaterStringAppend.java
+
9
−
1
View file @
d302bfe9
package
de.unikoblenz.fgbks.base.utils.boundary.bicreater
;
import
static
de
.
unikoblenz
.
fgbks
.
base
.
utils
.
boundary
.
bicreater
.
BoundaryBiCreaterType
.
COMBINE
;
import
static
de
.
unikoblenz
.
fgbks
.
base
.
utils
.
boundary
.
checker
.
BoundaryCheckType
.
IS_IN_CONTACT
;
import
de.unikoblenz.fgbks.base.utils.boundary.Boundary
;
import
de.unikoblenz.fgbks.base.utils.boundary.impl.StringBoundary
;
import
java.util.Optional
;
...
...
@@ -22,6 +26,10 @@ public class BiCreaterStringAppend extends AbstractBoundaryBiCreater<StringBound
@Override
public
Optional
<
StringBoundary
>
create
(
StringBoundary
b1
,
StringBoundary
b2
)
{
return
Optional
.
empty
();
if
(
b1
.
checkWith
(
IS_IN_CONTACT
,
b2
))
{
return
Optional
.
empty
();
}
Optional
<
Boundary
>
b
=
b1
.
createBi
(
COMBINE
,
b2
);
return
b
.
map
(
boundary
->
(
StringBoundary
)
boundary
);
}
}
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