{"id":313,"date":"2023-12-12T15:26:05","date_gmt":"2023-12-12T07:26:05","guid":{"rendered":"http:\/\/ericw.top\/?p=313"},"modified":"2023-12-12T15:26:18","modified_gmt":"2023-12-12T07:26:18","slug":"java-%e6%8e%a5%e5%8f%a3%e7%bb%84%e6%88%90%e4%b8%8e%e6%9b%b4%e6%96%b0%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/ericw.top\/?p=313","title":{"rendered":"Java \u63a5\u53e3\u7ec4\u6210\u4e0e\u66f4\u65b0\u8be6\u89e3"},"content":{"rendered":"<h1 id=\"toc-0\">Java \u63a5\u53e3\u7ec4\u6210\u4e0e\u66f4\u65b0\u8be6\u89e3<\/h1>\n<p>\u5728Java\u7f16\u7a0b\u4e2d\uff0c\u63a5\u53e3\uff08interface\uff09\u662f\u4e00\u79cd\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\u3002\u5b83\u5141\u8bb8\u7c7b\u5b9a\u4e49\u4e00\u7ec4\u62bd\u8c61\u65b9\u6cd5\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u7c7b\u4e2d\u5b9e\u73b0\u3002\u63a5\u53e3\u5728Java\u4e2d\u8d77\u5230\u4e86\u91cd\u8981\u7684\u89d2\u8272\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u4ee3\u7801\u7684\u7ec4\u7ec7\u548c\u8bbe\u8ba1\u4e2d\u3002<\/p>\n<h2 id=\"toc-1\">\u63a5\u53e3\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<ol>\n<li>\n<p><strong>\u63a5\u53e3\u662f\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>\u63a5\u53e3\u662f\u4e00\u79cd\u62bd\u8c61\u7c7b\u578b\uff0c\u5b83\u5b9a\u4e49\u4e86\u4e00\u7ec4\u62bd\u8c61\u65b9\u6cd5\u7684\u5408\u540c\uff0c\u800c\u4e0d\u63d0\u4f9b\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5177\u4f53\u5b9e\u73b0\u3002\u63a5\u53e3\u901a\u5e38\u7528\u4e8e\u5b9a\u4e49\u7c7b\u5fc5\u987b\u9075\u5b88\u7684\u884c\u4e3a\u89c4\u8303\u3002\u4efb\u4f55\u7c7b\u90fd\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e2a\u6216\u591a\u4e2a\u63a5\u53e3\uff0c\u4ee5\u4fdd\u8bc1\u5b83\u4eec\u63d0\u4f9b\u4e86\u63a5\u53e3\u4e2d\u5b9a\u4e49\u7684\u6240\u6709\u65b9\u6cd5\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u63a5\u53e3\u7684\u7279\u70b9\uff1a<\/strong><\/p>\n<ul>\n<li>\u63a5\u53e3\u4e2d\u7684\u65b9\u6cd5\u9ed8\u8ba4\u662fpublic\u548cabstract\u7684\uff0c\u53ef\u4ee5\u7701\u7565\u8fd9\u4e24\u4e2a\u5173\u952e\u5b57\u3002<\/li>\n<li>\u63a5\u53e3\u4e2d\u7684\u5b57\u6bb5\uff08\u53d8\u91cf\uff09\u9ed8\u8ba4\u662fpublic\u3001static\u548cfinal\u7684\uff0c\u4e5f\u53ef\u4ee5\u7701\u7565\u8fd9\u4e9b\u5173\u952e\u5b57\u3002<\/li>\n<li>\u7c7b\u5b9e\u73b0\u63a5\u53e3\u65f6\uff0c\u5fc5\u987b\u5b9e\u73b0\u63a5\u53e3\u4e2d\u5b9a\u4e49\u7684\u6240\u6709\u65b9\u6cd5\uff0c\u5426\u5219\u7c7b\u5fc5\u987b\u58f0\u660e\u4e3aabstract\u3002<\/li>\n<li>\u4e00\u4e2a\u7c7b\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u63a5\u53e3\uff0c\u4f46\u53ea\u80fd\u7ee7\u627f\u4e00\u4e2a\u7c7b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 id=\"toc-2\">\u63a5\u53e3\u7684\u7ec4\u6210<\/h2>\n<p>\u63a5\u53e3\u4e0d\u4ec5\u662f\u4e00\u7ec4\u62bd\u8c61\u65b9\u6cd5\u7684\u96c6\u5408\uff0c\u5b83\u8fd8\u53ef\u4ee5\u5305\u542b\u9ed8\u8ba4\u65b9\u6cd5\u3001\u9759\u6001\u65b9\u6cd5\u548c\u79c1\u6709\u65b9\u6cd5\u3002<\/p>\n<ol>\n<li>\n<p><strong>\u62bd\u8c61\u65b9\u6cd5<\/strong><\/p>\n<p>\u62bd\u8c61\u65b9\u6cd5\u662f\u63a5\u53e3\u7684\u6838\u5fc3\u3002\u5b83\u4eec\u662f\u6ca1\u6709\u65b9\u6cd5\u4f53\u7684\u65b9\u6cd5\u58f0\u660e\uff0c\u7531\u63a5\u53e3\u4e2d\u7684\u5b50\u7c7b\u6765\u5b9e\u73b0\u3002\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u7684\u62bd\u8c61\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u5b9a\u4e49\u4e00\u7ec4\u76f8\u5173\u7684\u884c\u4e3a\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public interface Shape {\n   double area(); \/\/ \u62bd\u8c61\u65b9\u6cd5\uff0c\u8ba1\u7b97\u5f62\u72b6\u7684\u9762\u79ef\n   double perimeter(); \/\/ \u62bd\u8c61\u65b9\u6cd5\uff0c\u8ba1\u7b97\u5f62\u72b6\u7684\u5468\u957f\n}\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u9ed8\u8ba4\u65b9\u6cd5<\/strong><\/p>\n<p>\u9ed8\u8ba4\u65b9\u6cd5\u662fJava 8\u5f15\u5165\u7684\u7279\u6027\uff0c\u5141\u8bb8\u5728\u63a5\u53e3\u4e2d\u4e3a\u65b9\u6cd5\u63d0\u4f9b\u9ed8\u8ba4\u7684\u5b9e\u73b0\u3002\u8fd9\u6837\uff0c\u5728\u5b9e\u73b0\u63a5\u53e3\u7684\u7c7b\u4e2d\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u8986\u76d6\u9ed8\u8ba4\u65b9\u6cd5\u3002\u9ed8\u8ba4\u65b9\u6cd5\u7684\u5173\u952e\u5b57\u662f<code class=\"prettyprint\" >default<\/code>\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public interface Greeting {\n   void sayHello(); \/\/ \u62bd\u8c61\u65b9\u6cd5\n\n   default void sayHi() {\n       System.out.println(&quot;Hi!&quot;); \/\/ \u9ed8\u8ba4\u65b9\u6cd5\n   }\n}\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u9759\u6001\u65b9\u6cd5<\/strong><\/p>\n<p>\u9759\u6001\u65b9\u6cd5\u662fJava 8\u5f15\u5165\u7684\u53e6\u4e00\u4e2a\u7279\u6027\uff0c\u5141\u8bb8\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u9759\u6001\u65b9\u6cd5\u3002\u9759\u6001\u65b9\u6cd5\u662f\u4e0e\u63a5\u53e3\u5173\u8054\u7684\u7c7b\u7ea7\u522b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a5\u53e3\u540d\u79f0\u76f4\u63a5\u8c03\u7528\u3002\u9759\u6001\u65b9\u6cd5\u7684\u5173\u952e\u5b57\u662f<code class=\"prettyprint\" >static<\/code>\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public interface MathOperations {\n   int add(int a, int b); \/\/ \u62bd\u8c61\u65b9\u6cd5\n\n   static int subtract(int a, int b) {\n       return a - b; \/\/ \u9759\u6001\u65b9\u6cd5\n   }\n}\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u79c1\u6709\u65b9\u6cd5<\/strong><\/p>\n<p>Java 9\u5f15\u5165\u4e86\u79c1\u6709\u65b9\u6cd5\uff0c\u5141\u8bb8\u5728\u63a5\u53e3\u4e2d\u5b9a\u4e49\u79c1\u6709\u65b9\u6cd5\u4ee5\u4f9b\u9ed8\u8ba4\u65b9\u6cd5\u6216\u9759\u6001\u65b9\u6cd5\u5185\u90e8\u4f7f\u7528\u3002\u79c1\u6709\u65b9\u6cd5\u7684\u5173\u952e\u5b57\u662f<code class=\"prettyprint\" >private<\/code>\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public interface Calculator {\n   int add(int a, int b); \/\/ \u62bd\u8c61\u65b9\u6cd5\n\n   default int subtract(int a, int b) {\n       return a - b; \/\/ \u9ed8\u8ba4\u65b9\u6cd5\u8c03\u7528\u79c1\u6709\u65b9\u6cd5\n   }\n\n   static int multiply(int a, int b) {\n       return multiplyHelper(a, b); \/\/ \u9759\u6001\u65b9\u6cd5\u8c03\u7528\u79c1\u6709\u65b9\u6cd5\n   }\n\n   private static int multiplyHelper(int a, int b) {\n       return a * b; \/\/ \u79c1\u6709\u65b9\u6cd5\n   }\n}\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2 id=\"toc-3\">\u63a5\u53e3\u7684\u4f7f\u7528<\/h2>\n<p>\u63a5\u53e3\u662fJava\u4e2d\u7684\u91cd\u8981\u6982\u5ff5\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u591a\u7ee7\u627f\u548c\u7ec4\u4ef6\u5316\u7f16\u7a0b\u3002<\/p>\n<ol>\n<li>\n<p>\u63a5\u53e3\u7684\u5b9e\u73b0<\/p>\n<p>\u8981\u5b9e\u73b0\u4e00\u4e2a\u63a5\u53e3\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u7c7b\uff0c\u5e76\u4f7f\u7528\u5173\u952e\u5b57<code class=\"prettyprint\" >implements<\/code>\u6765\u8868\u793a\u4f60\u7684\u7c7b\u5b9e\u73b0\u4e86\u8be5\u63a5\u53e3\u3002\u7136\u540e\uff0c\u4f60\u5fc5\u987b\u63d0\u4f9b\u63a5\u53e3\u4e2d\u5b9a\u4e49\u7684\u6240\u6709\u62bd\u8c61\u65b9\u6cd5\u7684\u5177\u4f53\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public class Circle implements Shape {\n   private double radius;\n\n   public Circle(double radius) {\n       this.radius = radius;\n   }\n\n   @Override\n   public double area() {\n       return Math.PI * radius * radius;\n   }\n\n   @Override\n   public double perimeter() {\n       return 2 * Math.PI * radius;\n   }\n}\n<\/code><\/pre>\n<\/li>\n<li>\n<p>\u591a\u7ee7\u627f<\/p>\n<p>Java\u4e2d\u7684\u7c7b\u53ea\u652f\u6301\u5355\u7ee7\u627f\uff0c\u4f46\u4f60\u53ef\u4ee5\u5b9e\u73b0\u591a\u4e2a\u63a5\u53e3\u3002\u8fd9\u4f7f\u5f97\u63a5\u53e3\u6210\u4e3a\u5b9e\u73b0\u591a\u7ee7\u627f\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7c7b\uff0c\u5b83\u540c\u65f6\u5b9e\u73b0\u591a\u4e2a\u63a5\u53e3\uff0c\u4ece\u800c\u5177\u6709\u591a\u4e2a\u63a5\u53e3\u4e2d\u5b9a\u4e49\u7684\u884c\u4e3a\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public class MyCalculator implements MathOperations, Calculator {\n   @Override\n   public int add(int a, int b) {\n       return a + b;\n   }\n}\n<\/code><\/pre>\n<\/li>\n<li>\n<p>\u9ed8\u8ba4\u65b9\u6cd5\u7684\u4f7f\u7528<\/p>\n<p>\u9ed8\u8ba4\u65b9\u6cd5\u5141\u8bb8\u4f60\u5728\u4e0d\u7834\u574f\u5b9e\u73b0\u7c7b\u7684\u60c5\u51b5\u4e0b\uff0c\u5411\u63a5\u53e3\u6dfb\u52a0\u65b0\u7684\u65b9\u6cd5\u3002\u5982\u679c\u5b9e\u73b0\u7c7b\u4e0d\u8986\u76d6\u9ed8\u8ba4\u65b9\u6cd5\uff0c\u5b83\u5c06\u7ee7\u627f\u9ed8\u8ba4\u5b9e\u73b0\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">public class MyGreeting implements Greeting {\n   @Override\n   public void sayHello() {\n       System.out.println(&quot;Hello!&quot;);\n   }\n\n   \/\/ sayHi()\u65b9\u6cd5\u4e0d\u9700\u8981\u91cd\u5199\uff0c\u56e0\u4e3a\u5b83\u6709\u9ed8\u8ba4\u5b9e\u73b0\n}\n<\/code><\/pre>\n<\/li>\n<li>\n<p>\u9759\u6001\u65b9\u6cd5\u7684\u4f7f\u7528<\/p>\n<p>\u9759\u6001\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u63a5\u53e3\u540d\u79f0\u76f4\u63a5\u8c03\u7528\uff0c\u800c\u4e0d\u9700\u8981\u521b\u5efa\u63a5\u53e3\u7684\u5b9e\u4f8b\u3002\u8fd9\u4f7f\u5f97\u5b83\u4eec\u5728\u5b9e\u7528\u6027\u5de5\u5177\u7c7b\u7684\u60c5\u51b5\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">int result = MathOperations.subtract(10, 5); \/\/ \u8c03\u7528\u63a5\u53e3\u7684\u9759\u6001\u65b9\u6cd5\n<\/code><\/pre>\n<\/li>\n<li>\n<p>\u79c1\u6709\u65b9\u6cd5\u7684\u4f7f\u7528<\/p>\n<p>\u79c1\u6709\u65b9\u6cd5\u4e3b\u8981\u7528\u4e8e\u5728\u63a5\u53e3\u5185\u90e8\u91cd\u7528\u4ee3\u7801\uff0c\u4ee5\u907f\u514d\u4ee3\u7801\u91cd\u590d\u3002\u5b83\u4eec\u4e0d\u4f1a\u5bf9\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\u53ef\u89c1\uff0c\u53ea\u80fd\u5728\u63a5\u53e3\u5185\u90e8\u4f7f\u7528\u3002<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-java\">private static int multiplyHelper(int a, int b) {\n   return a * b; \/\/ \u79c1\u6709\u65b9\u6cd5\n}\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2 id=\"toc-4\">\u63a5\u53e3\u7684\u6700\u4f73\u5b9e\u8df5<\/h2>\n<p>\u5728\u4f7f\u7528\u63a5\u53e3\u65f6\uff0c\u6709\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7f16\u5199\u6e05\u6670\u3001\u53ef\u7ef4\u62a4\u7684\u4ee3\u7801\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u547d\u540d\u7ea6\u5b9a\uff1a<\/strong>\u7ed9\u63a5\u53e3\u53d6\u4e00\u4e2a\u80fd\u591f\u6e05\u6670\u53cd\u6620\u5176\u529f\u80fd\u7684\u540d\u5b57\uff0c\u901a\u5e38\u4f7f\u7528\u540d\u8bcd\u6216\u5f62\u5bb9\u8bcd+\u540d\u8bcd\u7684\u5f62\u5f0f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5355\u4e00\u804c\u8d23\uff1a<\/strong>\u6bcf\u4e2a\u63a5\u53e3\u5e94\u8be5\u53ea\u8d1f\u8d23\u4e00\u4e2a\u660e\u786e\u5b9a\u4e49\u7684\u4efb\u52a1\uff0c\u4e0d\u8981\u5c06\u591a\u4e2a\u4e0d\u76f8\u5173\u7684\u65b9\u6cd5\u653e\u5728\u540c\u4e00\u4e2a\u63a5\u53e3\u4e2d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u9ed8\u8ba4\u65b9\u6cd5\uff1a<\/strong>\u5728\u5411\u73b0\u6709\u63a5\u53e3\u6dfb\u52a0\u65b0\u65b9\u6cd5\u65f6\uff0c\u9996\u9009\u4f7f\u7528\u9ed8\u8ba4\u65b9\u6cd5\uff0c\u4ee5\u907f\u514d\u7834\u574f\u5df2\u6709\u5b9e\u73b0\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u6863\u6ce8\u91ca\uff1a<\/strong>\u5728\u63a5\u53e3\u548c\u65b9\u6cd5\u4e0a\u4f7f\u7528\u6587\u6863\u6ce8\u91ca\uff0c\u63d0\u4f9b\u6e05\u6670\u7684\u6587\u6863\u4ee5\u4fbf\u5176\u4ed6\u5f00\u53d1\u4eba\u5458\u7406\u89e3\u63a5\u53e3\u7684\u7528\u9014\u548c\u4f7f\u7528\u65b9\u5f0f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6e05\u6670\u7684\u65b9\u6cd5\u547d\u540d\uff1a<\/strong>\u7ed9\u65b9\u6cd5\u53d6\u4e00\u4e2a\u63cf\u8ff0\u6027\u597d\u7684\u540d\u5b57\uff0c\u4f7f\u5176\u7528\u9014\u660e\u663e\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9002\u5ea6\u4f7f\u7528\u79c1\u6709\u65b9\u6cd5\uff1a<\/strong>\u4f7f\u7528\u79c1\u6709\u65b9\u6cd5\u6765\u907f\u514d\u4ee3\u7801\u91cd\u590d\uff0c\u4f46\u4e0d\u8981\u8fc7\u5ea6\u4f7f\u7528\uff0c\u4ee5\u514d\u63a5\u53e3\u53d8\u5f97\u96be\u4ee5\u7406\u89e3\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u63a5\u53e3\u7684\u7248\u672c\u7ba1\u7406\uff1a<\/strong>\u5728\u4fee\u6539\u63a5\u53e3\u65f6\uff0c\u8981\u6ce8\u610f\u7248\u672c\u517c\u5bb9\u6027\uff0c\u907f\u514d\u7834\u574f\u73b0\u6709\u7684\u5b9e\u73b0\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u63a5\u53e3\u7684\u5b9e\u73b0\u7c7b\u547d\u540d\uff1a<\/strong>\u5b9e\u73b0\u7c7b\u901a\u5e38\u53ef\u4ee5\u5728\u63a5\u53e3\u540d\u540e\u6dfb\u52a0&quot;Impl&quot;\u6216\u5176\u4ed6\u63cf\u8ff0\u6027\u7684\u540e\u7f00\u6765\u547d\u540d\uff0c\u4ee5\u793a\u533a\u5206\u3002<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Java \u63a5\u53e3\u7ec4\u6210\u4e0e\u66f4\u65b0\u8be6\u89e3 \u5728Java\u7f16\u7a0b\u4e2d\uff0c\u63a5\u53e3\uff08interface\uff09\u662f\u4e00\u79cd\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\u3002\u5b83\u5141\u8bb8\u7c7b\u5b9a\u4e49\u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5],"tags":[],"_links":{"self":[{"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/posts\/313"}],"collection":[{"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ericw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=313"}],"version-history":[{"count":1,"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":315,"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/posts\/313\/revisions\/315"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ericw.top\/index.php?rest_route=\/wp\/v2\/media\/314"}],"wp:attachment":[{"href":"http:\/\/ericw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ericw.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ericw.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}