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

TypeInfo: equal to class, equal to class or superclass #94

Closed
ljacqu opened this issue Aug 13, 2023 · 0 comments
Closed

TypeInfo: equal to class, equal to class or superclass #94

ljacqu opened this issue Aug 13, 2023 · 0 comments
Milestone

Comments

@ljacqu
Copy link
Owner

ljacqu commented Aug 13, 2023

I have a common use case of checking if a TypeInfo instance is equal to a given class C, or if C.isAssignableFrom(typeInfo.toClass()) but this is a bit troublesome because TypeInfo.toClass() can be null.

  • Introduce a method equalTo(Class)
  • Introduce a method isAssignableFrom(Class)
@ljacqu ljacqu added this to the 0.1.0 milestone Aug 13, 2023
@ljacqu ljacqu closed this as completed in cab4cd4 Aug 14, 2023
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

No branches or pull requests

1 participant