-
Notifications
You must be signed in to change notification settings - Fork 0
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 equals
method not allowing override
#5
Comments
Hello. Is this bug/missing feature still around? I'm a little confused because overwriting I will be using I2Bplus-tree for a programming project in the context of my bachelor's thesis, and I'm open to contributing. Introducing the intervalEquals method seems like a good + fairly easy fix. |
Hey @Nikovic thanks for your question - I need to take a deeper look into it since it has been a while |
The current implementation does not allow the overriding of the
FlatInterval.equals
method since internally someFlatInterval
objects are created to optimise data handling. As such, if one does override theequals
method with the new properties, thesearch
method brakes.Possible solutions:
FlatInterval
objects inside theI2BplusTree
and just use/ move around the valid times;intervalEquals
) that just makes the comparison of the intervals. Then, this method is used for comparison with theFlatInterval
objects inside the tree, while theequals
method is used for comparison between objects introduced by the user.The text was updated successfully, but these errors were encountered: