René's URL Explorer Experiment


Title: Record patterns (destructuring) | java.evolved

Open Graph Title: Record patterns (destructuring) | java.evolved

X Title: Record patterns (destructuring) | java.evolved

Description: Destructure records directly in patterns — extract fields in one step.

Open Graph Description: Destructure records directly in patterns — extract fields in one step.

X Description: Destructure records directly in patterns — extract fields in one step.

Opengraph URL: https://javaevolved.github.io/language/record-patterns.html

direct link

Domain: javaevolved.github.io


Hey, it has json ld scripts:
  {
    "@context": "https://schema.org",
    "@type": "TechArticle",
    "headline": "Record patterns (destructuring)",
    "description": "Destructure records directly in patterns \u2014 extract fields in one step.",
    "url": "https://javaevolved.github.io/record-patterns.html",
    "publisher": {
        "@type": "Organization",
        "name": "java.evolved",
        "url": "https://javaevolved.github.io"
    },
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://javaevolved.github.io/record-patterns.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": "Record patterns (destructuring)"
        }
    ]
}
  

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/record-patterns.png
og:image:width1200
og:image:height630
og:image:typeimage/png
twitter:cardsummary_large_image
twitter:imagehttps://javaevolved.github.io/og/language/record-patterns.png

Links:

java.evolvedhttps://javaevolved.github.io/
https://github.com/javaevolved/javaevolved.github.io
← All patternshttps://javaevolved.github.io/
https://javaevolved.github.io/language/sealed-classes.html
https://javaevolved.github.io/language/unnamed-variables.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%20Record%20patterns%20%28destructuring%29&category=language&slug=record-patterns
🌐 Report a translation issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=translation-issue.yml&title=%5BTranslation%5D%20Record%20patterns%20%28destructuring%29%20%28English%29&locale=en&pattern=record-patterns&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%2Frecord-patterns.html&text=Record%20patterns%20%28destructuring%29%20%E2%80%93%20java.evolved
🦋https://bsky.app/intent/compose?text=Record%20patterns%20%28destructuring%29%20%E2%80%93%20java.evolved%20https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Frecord-patterns.html
inhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Frecord-patterns.html
https://www.reddit.com/submit?url=https%3A%2F%2Fjavaevolved.github.io%2Flanguage%2Frecord-patterns.html&title=Record%20patterns%20%28destructuring%29%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%20Record%20patterns%20%28destructuring%29&category=language&slug=record-patterns
Record Patterns (JEP 440) ↗https://openjdk.org/jeps/440
View proof source ↗https://github.com/javaevolved/javaevolved.github.io/blob/main/proof/language/RecordPatterns.java
Language Beginner Diamond with anonymous classes Java 7/8 Map> map = new HashMap>(); // anonymous class: no diamond Predicate p = new Predicate() { public boolean test(String s) {..} }; Java 9+ Map> map = new HashMap<>(); // Java 9: diamond with anonymous classes Predicate p = new Predicate<>() { public boolean test(String s) {..} }; Hover to see modern ➜ JDK 9+ → https://javaevolved.github.io/language/diamond-operator.html
Language Beginner Records for data classes Java 8 public class Point { private final int x, y; public Point(int x, int y) { ... } public int getX() { return x; } public int getY() { return y; } // equals, hashCode, toString } Java 16+ public record Point(int x, int y) {} Hover to see modern ➜ JDK 16+ → https://javaevolved.github.io/language/records-for-data-classes.html
Language Beginner Unnamed variables with _ Java 8 try { parse(input); } catch (Exception ignored) { log("parse failed"); } map.forEach((key, value) -> { process(value); // key unused }); Java 22+ try { parse(input); } catch (Exception _) { log("parse failed"); } map.forEach((_, value) -> { process(value); }); Hover to see modern ➜ JDK 22+ → https://javaevolved.github.io/language/unnamed-variables.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.