Skip to content

Commit 2bed387

Browse files
committed
minor
1 parent 09eea10 commit 2bed387

2 files changed

Lines changed: 42 additions & 2 deletions

File tree

src/main/java/org/jamplate/logic/And.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* A logic evaluates to {@code true} if both two logics evaluates to {@code true}.
2424
*
2525
* @author LSafer
26-
* @version 0.0.4
26+
* @version 0.0.6
2727
* @since 0.0.4 ~2020.09.22
2828
*/
2929
public class And implements Logic {
@@ -55,6 +55,26 @@ public And(Logic left, Logic right) {
5555
this.right = right;
5656
}
5757

58+
/**
59+
* Get the {@link #left} logic of this.
60+
*
61+
* @return the {@link #left} logic of this.
62+
* @since 0.0.6 ~2020.09.22
63+
*/
64+
public final Logic left() {
65+
return this.left;
66+
}
67+
68+
/**
69+
* Get the {@link #right} logic of this.
70+
*
71+
* @return the {@link #right} logic of this.
72+
* @since 0.0.6 ~2020.09.22
73+
*/
74+
public final Logic right() {
75+
return this.right;
76+
}
77+
5878
@Override
5979
public String evaluate(Memory memory) {
6080
Objects.requireNonNull(memory, "memory");

src/main/java/org/jamplate/logic/Or.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* A logic evaluates to {@code true} if ether two logics evaluates to {@code true}.
2424
*
2525
* @author LSafer
26-
* @version 0.0.4
26+
* @version 0.0.6
2727
* @since 0.0.4 ~2020.09.22
2828
*/
2929
public class Or implements Logic {
@@ -55,6 +55,26 @@ public Or(Logic left, Logic right) {
5555
this.right = right;
5656
}
5757

58+
/**
59+
* Get the {@link #left} logic of this.
60+
*
61+
* @return the {@link #left} logic of this.
62+
* @since 0.0.6 ~2020.09.22
63+
*/
64+
public final Logic left() {
65+
return this.left;
66+
}
67+
68+
/**
69+
* Get the {@link #right} logic of this.
70+
*
71+
* @return the {@link #right} logic of this.
72+
* @since 0.0.6 ~2020.09.22
73+
*/
74+
public final Logic right() {
75+
return this.right;
76+
}
77+
5878
@Override
5979
public String evaluate(Memory memory) {
6080
Objects.requireNonNull(memory, "memory");

0 commit comments

Comments
 (0)