Skip to content

Conversation

@yuancu
Copy link

@yuancu yuancu commented Jun 30, 2025

Description

Move IpComparisonOperators to an inner class ComparisonType of CompareIpFunction.

I think IpComparisonOperators won't be used elsewhere, therefore it's better to conceal it.

Btw, I tried to avoid creating enums like ComparisonType by leveraging BiPredicate. However, I found that I cannot pass it to a static member function via Expressions.constant or the alike. Therefore I still created one.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ishaoxy ishaoxy merged commit e587271 into ishaoxy:compare-ip-operator Jun 30, 2025
@yuancu yuancu deleted the refactor-ip-compare branch June 30, 2025 08:10
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