Skip to content

Conversation

@PetrPytelka
Copy link
Contributor

Improved comparison between different type.
Do not prefer left operand over right operand. E.g.: newly 3.0=3 is same as 3=3.0, same behavioure for string vs numerical value. Improved compatibility with VBA.

@PetrPytelka PetrPytelka changed the title Refactorized AbstractCompareOperator - is symetric / improved comparison between different type Refactorized AbstractCompareOperator - is symetric / improved comparison between different types Feb 3, 2020
return null;
}
return Double.parseDouble(s);
try {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Great. Thanks.

@PetrPytelka PetrPytelka force-pushed the symetric_comparator branch 2 times, most recently from aa9c669 to 9d626bd Compare February 4, 2020 22:59
@PetrPytelka
Copy link
Contributor Author

PetrPytelka commented Feb 4, 2020

I simplified implementation of comparators. Each comparator has to implement only one simple method: boolean decide(int comparisonResult).

This implementation is also base for adding new data types as LocalDate and EmptyValue.

…fferent types. Do not prefer left operand over right operand. E.g.: newly 3.0=3 is same as 3=3.0
@verhas verhas merged commit 58278a9 into verhas:master Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants