-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> * [ClassUtilities](userguide.md#classutilities) adds
> * `Set<Class<?>> findLowestCommonSupertypes(Class<?> a, Class<?> b)` > * which returns the lowest common anscestor(s) of two classes, excluding `Object.class.` This is useful for finding the common ancestor of two classes that are not related by inheritance. Generally, executes in O(n log n) - uses sort internally. If more than one exists, you can filter the returned Set as you please, favoring classes, interfaces, etc. > * `Class<?> findLowestCommonSupertype(Class<?> a, Class<?> b)` > * which is a convenience method that calls the above method and then returns the first one in the Set or null. > * `boolean haveCommonAncestor(Class<?> a, Class<?> b)` > * which returns true if the two classes have a common ancestor (excluding `Object.class`). > * `Set<Class<?>> getAllSupertypes(Class<?> clazz)` > * which returns all superclasses and interfaces of a class, including itself. This is useful for finding all the classes and interfaces that a class implements or extends. > * Moved `Sealable*` test cases to json-io project. > * Removed remaining usages of deprecated `CompactLinkedMap.`
- Loading branch information
Showing
16 changed files
with
523 additions
and
1,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.