Skip to content

1.1 - [API Change] Added generics, ClassFinder and Enums

Compare
Choose a tag to compare
@OxideWaveLength OxideWaveLength released this 27 Feb 15:23
· 3 commits to main since this release

API Change:
The BetterReflectionClass now uses generics to assign a class type

Enums:
Added support for enum classes through the EnumBetterReflectionClass, with the following methods

  • #getEnumConstants()
  • contains(String)
  • getIfPresent(String)
  • getOrNull(String)
  • getOrDefault(String, T)
  • toString(String)
  • toString()

Added a ClassFinder: find and iterate through a java program's classes (both IDE runtime and packed jar)
This class deprecates BetterReflectionUtils#getClassesInPackage(String)

Added unit tests for the ClassFinder class