Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in class name AbstractBinaryNodeCalc #2846

Merged
merged 4 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* @author Nicolas Rol {@literal <nicolas.rol at rte-france.com>}
*/
public abstract class AbstractBinaryMinMax extends AbstractBinaryNodeCal {
public abstract class AbstractBinaryMinMax extends AbstractBinaryNodeCalc {

protected AbstractBinaryMinMax(NodeCalc left, NodeCalc right) {
super(left, right);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
/**
* @author Nicolas Rol {@literal <nicolas.rol at rte-france.com>}
*/
public abstract class AbstractBinaryNodeCal implements NodeCalc {
public abstract class AbstractBinaryNodeCalc implements NodeCalc {

protected NodeCalc left;
protected NodeCalc right;

protected AbstractBinaryNodeCal(NodeCalc left, NodeCalc right) {
protected AbstractBinaryNodeCalc(NodeCalc left, NodeCalc right) {
this.left = Objects.requireNonNull(left);
this.right = Objects.requireNonNull(right);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* @author Geoffroy Jamgotchian {@literal <geoffroy.jamgotchian at rte-france.com>}
*/
public class BinaryOperation extends AbstractBinaryNodeCal {
public class BinaryOperation extends AbstractBinaryNodeCalc {

static final String NAME = "binaryOp";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public R visit(BinaryMaxCalc nodeCalc, A arg, R left, R right) {
}

@Override
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCal nodeCalc, A arg) {
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCalc nodeCalc, A arg) {
return Pair.of(nodeCalc.getLeft(), nodeCalc.getRight());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public NodeCalc visit(BinaryMaxCalc nodeCalc, A arg, NodeCalc left, NodeCalc rig
}

@Override
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCal nodeCalc, A arg) {
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCalc nodeCalc, A arg) {
return Pair.of(nodeCalc.getLeft(), nodeCalc.getRight());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public Double visit(BinaryMaxCalc nodeCalc, DoubleMultiPoint multiPoint, Double
}

@Override
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCal nodeCalc, DoubleMultiPoint multiPoint) {
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCalc nodeCalc, DoubleMultiPoint multiPoint) {
return Pair.of(nodeCalc.getLeft(), nodeCalc.getRight());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public NodeCalc visit(BinaryMaxCalc nodeCalc, A arg, NodeCalc left, NodeCalc rig
return visitBinaryNodeCalc(nodeCalc, left, right);
}

private NodeCalc visitBinaryNodeCalc(AbstractBinaryNodeCal nodeCalc, NodeCalc left, NodeCalc right) {
private NodeCalc visitBinaryNodeCalc(AbstractBinaryNodeCalc nodeCalc, NodeCalc left, NodeCalc right) {
if (left != null) {
nodeCalc.setLeft(left);
}
Expand All @@ -120,7 +120,7 @@ private NodeCalc visitBinaryNodeCalc(AbstractBinaryNodeCal nodeCalc, NodeCalc le
}

@Override
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCal nodeCalc, A arg) {
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCalc nodeCalc, A arg) {
return Pair.of(nodeCalc.getLeft(), nodeCalc.getRight());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public NodeCalc iterate(MaxNodeCalc nodeCalc, Void arg) {
}

@Override
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCal nodeCalc, Void arg) {
public Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCalc nodeCalc, Void arg) {
return Pair.of(nodeCalc.getLeft(), nodeCalc.getRight());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ public interface NodeCalcVisitor<R, A> {

R visit(BinaryMaxCalc nodeCalc, A arg, R left, R right);

Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCal nodeCalc, A arg);
Pair<NodeCalc, NodeCalc> iterate(AbstractBinaryNodeCalc nodeCalc, A arg);
}