Skip to content

Commit de70ad3

Browse files
brunoborgesCopilot
andcommitted
Enrich snippet JSON files with prev/next/related fields
Add navigation and related pattern data extracted from HTML pages: - prev: previous pattern path (category/slug) - next: next pattern path (category/slug) - related: array of 3 related pattern paths These fields complete the JSON data needed to generate HTML from templates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 720079c commit de70ad3

File tree

86 files changed

+688
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+688
-86
lines changed

collections/collectors-teeing.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Merge into a record or value object directly."
3131
}
3232
],
33-
"support": "Widely available since JDK 12 (March 2019)"
33+
"support": "Widely available since JDK 12 (March 2019)",
34+
"prev": "collections/stream-tolist-shorthand",
35+
"next": "collections/stream-toarray-typed",
36+
"related": [
37+
"collections/copying-collections-immutably",
38+
"collections/unmodifiable-collectors",
39+
"collections/stream-toarray-typed"
40+
]
3441
}

collections/copying-collections-immutably.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Changes to the original don't affect the copy."
3131
}
3232
],
33-
"support": "Widely available since JDK 10 (March 2018)"
33+
"support": "Widely available since JDK 10 (March 2018)",
34+
"prev": "collections/immutable-set-creation",
35+
"next": "collections/map-entry-factory",
36+
"related": [
37+
"collections/immutable-set-creation",
38+
"collections/map-entry-factory",
39+
"collections/immutable-list-creation"
40+
]
3441
}

collections/immutable-list-creation.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Rejects null elements at creation time, failing fast."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)"
33+
"support": "Widely available since JDK 9 (Sept 2017)",
34+
"prev": "language/exhaustive-switch",
35+
"next": "collections/immutable-map-creation",
36+
"related": [
37+
"collections/immutable-map-creation",
38+
"collections/immutable-set-creation",
39+
"collections/sequenced-collections"
40+
]
3441
}

collections/immutable-map-creation.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Null entries are rejected immediately."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)"
33+
"support": "Widely available since JDK 9 (Sept 2017)",
34+
"prev": "collections/immutable-list-creation",
35+
"next": "collections/immutable-set-creation",
36+
"related": [
37+
"collections/copying-collections-immutably",
38+
"collections/sequenced-collections",
39+
"collections/stream-tolist-shorthand"
40+
]
3441
}

collections/immutable-set-creation.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "No add/remove possible after creation."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)"
33+
"support": "Widely available since JDK 9 (Sept 2017)",
34+
"prev": "collections/immutable-map-creation",
35+
"next": "collections/copying-collections-immutably",
36+
"related": [
37+
"collections/copying-collections-immutably",
38+
"collections/collectors-teeing",
39+
"collections/stream-tolist-shorthand"
40+
]
3441
}

collections/map-entry-factory.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Works perfectly with Map.ofEntries() for large maps."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)"
33+
"support": "Widely available since JDK 9 (Sept 2017)",
34+
"prev": "collections/copying-collections-immutably",
35+
"next": "collections/sequenced-collections",
36+
"related": [
37+
"collections/sequenced-collections",
38+
"collections/immutable-map-creation",
39+
"collections/immutable-list-creation"
40+
]
3441
}

collections/sequenced-collections.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Works the same on List, Deque, SortedSet."
3131
}
3232
],
33-
"support": "Widely available since JDK 21 LTS (Sept 2023)"
33+
"support": "Widely available since JDK 21 LTS (Sept 2023)",
34+
"prev": "collections/map-entry-factory",
35+
"next": "collections/stream-tolist-shorthand",
36+
"related": [
37+
"collections/collectors-teeing",
38+
"collections/immutable-set-creation",
39+
"collections/immutable-map-creation"
40+
]
3441
}

collections/stream-toarray-typed.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "One expression replaces the manual loop."
3131
}
3232
],
33-
"support": "Widely available since JDK 8 (March 2014)"
33+
"support": "Widely available since JDK 8 (March 2014)",
34+
"prev": "collections/collectors-teeing",
35+
"next": "collections/unmodifiable-collectors",
36+
"related": [
37+
"collections/collectors-teeing",
38+
"collections/map-entry-factory",
39+
"collections/immutable-set-creation"
40+
]
3441
}

collections/stream-tolist-shorthand.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "stream → map → toList flows like English."
3131
}
3232
],
33-
"support": "Widely available since JDK 16 (March 2021)"
33+
"support": "Widely available since JDK 16 (March 2021)",
34+
"prev": "collections/sequenced-collections",
35+
"next": "collections/collectors-teeing",
36+
"related": [
37+
"collections/collectors-teeing",
38+
"collections/immutable-list-creation",
39+
"collections/immutable-map-creation"
40+
]
3441
}

collections/unmodifiable-collectors.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,12 @@
3030
"desc": "Rejects null elements during collection."
3131
}
3232
],
33-
"support": "Widely available since JDK 10 (March 2018)"
33+
"support": "Widely available since JDK 10 (March 2018)",
34+
"prev": "collections/stream-toarray-typed",
35+
"next": "strings/string-isblank",
36+
"related": [
37+
"collections/immutable-map-creation",
38+
"collections/immutable-set-creation",
39+
"collections/map-entry-factory"
40+
]
3441
}

0 commit comments

Comments
 (0)