We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Literals are currently only used for two purposes:
Literal
They are not usually needed together and whenever one is needed, a new Literal is instantiated. In a tight loop, this isn't optimal.
These could be replaced by a couple of functions (mock code):
static <From, To> Function<From, To> convert(from: Class<From>, to: Class<To>) static <T> Comparator<T> convert(clazz: Class<T>)
These functions could be cached and lookup could be via a hashtable at O(1).
This would also have another benefit of removing a type from the domain model, simplifying UnboundPredicate and BoundPredicate's signatures.
UnboundPredicate
BoundPredicate
The text was updated successfully, but these errors were encountered:
Fix unnecessary indentation in parameter list (Netflix#98)
c8e8316
No branches or pull requests
Literal
s are currently only used for two purposes:They are not usually needed together and whenever one is needed, a new
Literal
is instantiated. In a tight loop, this isn't optimal.These could be replaced by a couple of functions (mock code):
These functions could be cached and lookup could be via a hashtable at O(1).
This would also have another benefit of removing a type from the domain model, simplifying
UnboundPredicate
andBoundPredicate
's signatures.The text was updated successfully, but these errors were encountered: