René's URL Explorer Experiment


Title: Pattern matching for instanceof | java.evolved

Open Graph Title: Pattern matching for instanceof | java.evolved

X Title: Pattern matching for instanceof | java.evolved

Description: Combine type check and cast in one step with pattern matching.

Open Graph Description: Combine type check and cast in one step with pattern matching.

X Description: Combine type check and cast in one step with pattern matching.

Opengraph URL: https://javaevolved.github.io/language/pattern-matching-instanceof.html

direct link

Domain: javaevolved.github.io


Hey, it has json ld scripts:
  {
    "@context": "https://schema.org",
    "@type": "TechArticle",
    "headline": "Pattern matching for instanceof",
    "description": "Combine type check and cast in one step with pattern matching.",
    "url": "https://javaevolved.github.io/pattern-matching-instanceof.html",
    "publisher": {
        "@type": "Organization",
        "name": "java.evolved",
        "url": "https://javaevolved.github.io"
    },
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://javaevolved.github.io/pattern-matching-instanceof.html"
    }
}
  
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://javaevolved.github.io/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Language",
            "item": "https://javaevolved.github.io/#language"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Pattern matching for instanceof"
        }
    ]
}
  

theme-color#f97316
mobile-web-app-capableyes
apple-mobile-web-app-status-bar-styleblack-translucent
apple-mobile-web-app-titlejava.evolved
og:typearticle
og:site_namejava.evolved
og:localeen
og:imagehttps://javaevolved.github.io/og/language/pattern-matching-instanceof.png
og:image:width1200
og:image:height630
og:image:typeimage/png
twitter:cardsummary_large_image
twitter:imagehttps://javaevolved.github.io/og/language/pattern-matching-instanceof.png

Links:

java.evolvedhttps://javaevolved.github.io/
https://github.com/javaevolved/javaevolved.github.io
← All patternshttps://javaevolved.github.io/
https://javaevolved.github.io/language/switch-expressions.html
https://javaevolved.github.io/language/records-for-data-classes.html
Homehttps://javaevolved.github.io/
Languagehttps://javaevolved.github.io/#language
🐛 Report a code issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=code-issue.yml&title=%5BCode%20Issue%5D%20Pattern%20matching%20for%20instanceof&category=language&slug=pattern-matching-instanceof
🌐 Report a translation issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=translation-issue.yml&title=%5BTranslation%5D%20Pattern%20matching%20for%20instanceof%20%28English%29&locale=en&pattern=pattern-matching-instanceof&area=Pattern%20content
💡 Suggest a new patternhttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=new-pattern.yml
𝕏https://x.com/intent/tweet?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fpattern-matching-instanceof.html&text=Pattern%20matching%20for%20instanceof%20%E2%80%93%20java.evolved
🦋https://bsky.app/intent/compose?text=Pattern%20matching%20for%20instanceof%20%E2%80%93%20java.evolved%20https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fpattern-matching-instanceof.html
inhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fpattern-matching-instanceof.html
https://www.reddit.com/submit?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Fpattern-matching-instanceof.html&title=Pattern%20matching%20for%20instanceof%20%E2%80%93%20java.evolved
Let us know.https://github.com/javaevolved/javaevolved.github.io/issues/new?template=code-issue.yml&title=%5BCode%20Issue%5D%20Pattern%20matching%20for%20instanceof&category=language&slug=pattern-matching-instanceof
Pattern Matching for instanceof (JEP 394) ↗https://openjdk.org/jeps/394
View proof source ↗https://github.com/javaevolved/javaevolved.github.io/blob/main/proof/language/PatternMatchingInstanceof.java
Language Beginner Compact source files Java 8 public class HelloWorld { public static void main(String[] args) { System.out.println( "Hello, World!"); } } Java 25 void main() { IO.println("Hello, World!"); } Hover to see modern ➜ JDK 25+ → https://javaevolved.github.io/language/compact-source-files.html
Language Beginner Type inference with var Java 8 Map> map = new HashMap>(); for (Map.Entry> e : map.entrySet()) { // verbose type noise } Java 10+ var map = new HashMap>(); for (var entry : map.entrySet()) { // clean and readable } Hover to see modern ➜ JDK 10+ → https://javaevolved.github.io/language/type-inference-with-var.html
Language Beginner Text blocks for multiline strings Java 8 String json = "{\n" + " \"name\": \"Duke\",\n" + " \"age\": 30\n" + "}"; Java 15+ String json = """ { "name": "Duke", "age": 30 }"""; Hover to see modern ➜ JDK 15+ → https://javaevolved.github.io/language/text-blocks-for-multiline-strings.html
java.evolvedhttps://javaevolved.github.io/
Bruno Borgeshttps://github.com/brunoborges
GitHub Copilothttps://github.com/features/copilot
modern-css.comhttps://modern-css.com
View on GitHubhttps://github.com/javaevolved/javaevolved.github.io

Viewport: width=device-width, initial-scale=1.0

Robots: index, follow


URLs of crawlers that visited me.