René's URL Explorer Experiment


Title: Java 反射机制的学习 · Issue #12 · itjun/itjun-basic-java · GitHub

Open Graph Title: Java 反射机制的学习 · Issue #12 · itjun/itjun-basic-java

X Title: Java 反射机制的学习 · Issue #12 · itjun/itjun-basic-java

Description: 判断某个class是否为指定 interface 的实现 /** * 获取 EntityImpl 接口的所有实体实现类 * * @param clazz EntityImpl`接口的实现类 * @return entity类家族 */ public static Set> getFamily(Class clazz) { var items = new ArrayList

Open Graph Description: 判断某个class是否为指定 interface 的实现 /** * 获取 EntityImpl 接口的所有实体实现类 * * @param clazz EntityImpl`接口的实现类 * @return entity类家族 */ public static Set> getFamily(Class clazz) { var ...

X Description: 判断某个class是否为指定 interface 的实现 /** * 获取 EntityImpl 接口的所有实体实现类 * * @param clazz EntityImpl`接口的实现类 * @return entity类家族 */ public static Set<Class<? extends EntityImpl>> getFamily(Class<?...

Opengraph URL: https://github.com/itjun/itjun-basic-java/issues/12

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Java 反射机制的学习","articleBody":"- 判断某个class是否为指定 interface 的实现\r\n![image](https://github.com/itjun/itjun-basic-java/assets/12244231/97f26a22-80bc-4e68-870e-9bb24e78f6c0)\r\n\r\n```java\r\n/**\r\n * 获取 EntityImpl 接口的所有实体实现类\r\n * \r\n * @param clazz EntityImpl`接口的实现类\r\n * @return entity类家族\r\n */\r\npublic static Set\u003cClass\u003c? extends EntityImpl\u003e\u003e getFamily(Class\u003c?\u003e clazz) {\r\n    var items = new ArrayList\u003cClass\u003c? extends EntityImpl\u003e\u003e(); // 使用通配符泛型\r\n    var classz = clazz;\r\n    if (classz.getSuperclass().isAnnotationPresent(EntityKey.class))\r\n        classz = classz.getSuperclass();\r\n    items.add(classz.asSubclass(EntityImpl.class));\r\n\r\n    for (var item : classz.getDeclaredClasses()) {\r\n        if (EntityImpl.class.isAssignableFrom(item))\r\n            items.add(item.asSubclass(EntityImpl.class));\r\n    }\r\n\r\n    var result = new HashSet\u003cClass\u003c? extends EntityImpl\u003e\u003e();\r\n    for (var item : items) {\r\n        if (item.isAnnotationPresent(EntityKey.class))\r\n            result.add(item);\r\n    }\r\n    return result;\r\n}\r\n```\r\n- 获取指定接口的所有子类\r\n- 获取指定父类的所有子类\r\n- 获取某个注解的所有子类","author":{"url":"https://github.com/itjun","@type":"Person","name":"itjun"},"datePublished":"2023-09-11T06:28:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/12/itjun-basic-java/issues/12"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c4107ec0-a816-36c8-95ac-850cc3dcdaf5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA442:175B47:73C1E:9AD99:69734A8E
html-safe-nonce82ed1ea8f1da595344142f298068d908b8125d018e30fbfcf5133775bfb113ec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDQyOjE3NUI0Nzo3M0MxRTo5QUQ5OTo2OTczNEE4RSIsInZpc2l0b3JfaWQiOiI2NjMyMDcwODAxMjQ1MDMxMDU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9b94382a7db3c0a5608863e0da1cc5e52c5b0143000947b7076f65be9cfa55d3
hovercard-subject-tagissue:1889762713
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/itjun/itjun-basic-java/12/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0728fe32b52a11bd6b984775d271eedafd2056ea00b650ca16ab2b26060b0b11/itjun/itjun-basic-java/issues/12
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0728fe32b52a11bd6b984775d271eedafd2056ea00b650ca16ab2b26060b0b11/itjun/itjun-basic-java/issues/12
og:image:alt判断某个class是否为指定 interface 的实现 /** * 获取 EntityImpl 接口的所有实体实现类 * * @param clazz EntityImpl`接口的实现类 * @return entity类家族 */ public static Set> getFamily(Class clazz) { var ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameitjun
hostnamegithub.com
expected-hostnamegithub.com
None9c6b49fea3d431063963fbeee3309a15cb4096903286e532f663096b47b63bc6
turbo-cache-controlno-preview
go-importgithub.com/itjun/itjun-basic-java git https://github.com/itjun/itjun-basic-java.git
octolytics-dimension-user_id12244231
octolytics-dimension-user_loginitjun
octolytics-dimension-repository_id98538949
octolytics-dimension-repository_nwoitjun/itjun-basic-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id98538949
octolytics-dimension-repository_network_root_nwoitjun/itjun-basic-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release814e1d7d82db0f7eb6982bfa0395502441bb14ad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues/12#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fitjun%2Fitjun-basic-java%2Fissues%2F12
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fitjun%2Fitjun-basic-java%2Fissues%2F12
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=itjun%2Fitjun-basic-java
Reloadhttps://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues/12
Reloadhttps://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues/12
Reloadhttps://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues/12
itjun https://patch-diff.githubusercontent.com/itjun
itjun-basic-javahttps://patch-diff.githubusercontent.com/itjun/itjun-basic-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fitjun%2Fitjun-basic-java
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fitjun%2Fitjun-basic-java
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fitjun%2Fitjun-basic-java
Code https://patch-diff.githubusercontent.com/itjun/itjun-basic-java
Issues 2 https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues
Pull requests 1 https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/pulls
Actions https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/actions
Projects 0 https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/projects
Security 0 https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/security
Insights https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/pulse
Code https://patch-diff.githubusercontent.com/itjun/itjun-basic-java
Issues https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues
Pull requests https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/pulls
Actions https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/actions
Projects https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/projects
Security https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/security
Insights https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/itjun/itjun-basic-java/issues/12
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/itjun/itjun-basic-java/issues/12
Java 反射机制的学习https://patch-diff.githubusercontent.com/itjun/itjun-basic-java/issues/12#top
https://github.com/itjun
https://github.com/itjun
itjunhttps://github.com/itjun
on Sep 11, 2023https://github.com/itjun/itjun-basic-java/issues/12#issue-1889762713
https://private-user-images.githubusercontent.com/12244231/266926775-97f26a22-80bc-4e68-870e-9bb24e78f6c0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjkxNjM3MDcsIm5iZiI6MTc2OTE2MzQwNywicGF0aCI6Ii8xMjI0NDIzMS8yNjY5MjY3NzUtOTdmMjZhMjItODBiYy00ZTY4LTg3MGUtOWJiMjRlNzhmNmMwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTIzVDEwMTY0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiNTNjYWFkMWMwNzM5NDE2Yjc5NzUyZTRiNjNjNjIxNzQzYzAyMjNkYzI1MWIwMzQ1ZDJlODQwM2NiM2VhNmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-BRiwPvSFWitQaQLNwxsW_IJl1f02_q4ZJKvsi_wVDE
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.