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

Class util (get class, has class) #49

Closed
ljacqu opened this issue Jun 5, 2022 · 1 comment
Closed

Class util (get class, has class) #49

ljacqu opened this issue Jun 5, 2022 · 1 comment
Assignees
Milestone

Comments

@ljacqu
Copy link
Owner

ljacqu commented Jun 5, 2022

Class#forName but:

  • one that wraps the possible exception in a Runtime one
  • one that returns an Optional
  • one that returns a boolean?

Other idea:

  • return simple name of object's class if is not null;
  • smart toString for a Type var?
@ljacqu
Copy link
Owner Author

ljacqu commented Sep 3, 2022

  • method that returns whether it's a "regular" class (not interface, not enum, not annotation)
  • shortcut for modifiers? E.g. to check "is private final" immediately?

@ljacqu ljacqu self-assigned this Jun 23, 2023
@ljacqu ljacqu added this to the 0.1.0 milestone Jun 28, 2023
ljacqu added a commit that referenced this issue Jun 28, 2023
- EnumUtil offers method to inspect an enum class and to get an enum entry silently
- ClassUtil offers toString utilities, silent loading and categorizations of a class
@ljacqu ljacqu closed this as completed Jun 28, 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