{"id":173992,"date":"2020-10-26T08:22:50","date_gmt":"2020-10-26T00:22:50","guid":{"rendered":"http:\/\/4563.org\/?p=173992"},"modified":"2020-10-26T08:22:50","modified_gmt":"2020-10-26T00:22:50","slug":"kotlin-%e4%b8%ad%e7%9a%84%e5%af%86%e5%b0%81%e7%b1%bb%e5%88%b0%e5%ba%95%e6%98%af%e4%b8%80%e4%b8%aa%e4%bb%80%e4%b9%88%e6%84%8f%e4%b9%89%e5%92%8c%e8%ae%be%e8%ae%a1%e6%84%8f%e5%9b%be%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=173992","title":{"rendered":"kotlin \u4e2d\u7684\u5bc6\u5c01\u7c7b\u5230\u5e95\u662f\u4e00\u4e2a\u4ec0\u4e48\u610f\u4e49\u548c\u8bbe\u8ba1\u610f\u56fe\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  kotlin \u4e2d\u7684\u5bc6\u5c01\u7c7b\u5230\u5e95\u662f\u4e00\u4e2a\u4ec0\u4e48\u610f\u4e49\u548c\u8bbe\u8ba1\u610f\u56fe\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Newyorkcity <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<blockquote>\n<p>\u6240\u8c13\u53d7\u9650\u7684\u7c7b\u7ee7\u627f\u7ed3\u6784\uff0c\u5373\u5f53\u7c7b\u4e2d\u7684\u4e00\u4e2a\u503c\u53ea\u80fd\u662f\u6709\u9650\u7684\u51e0\u79cd\u7c7b\u578b\uff0c\u800c\u4e0d\u80fd\u662f\u5176\u4ed6\u7684\u4efb\u4f55\u7c7b\u578b\u3002<\/p>\n<\/blockquote>\n<p>\u4ec0\u4e48\u53eb\u7c7b\u4e2d\u7684\u4e00\u4e2a\u503c\uff1f<\/p>\n<p>\u6211\u7c97\u66b4\u5730\u7406\u89e3\u4e3a\u4e00\u4e2a\u503c\u5c31\u662f\u6307\u4e00\u4e2a\u6210\u5458\u3002\u90a3\u6210\u5458\u53ea\u80fd\u662f\u6709\u9650\u7684\u51e0\u79cd\u7c7b\u578b\uff1f\u6210\u5458\u58f0\u660e\u7684\u65f6\u5019\u4e0d\u662f\u90fd\u76f4\u63a5\u5b9a\u6b7b\u4e3a\u4e00\u79cd\u7c7b\u578b\u4e86\u5417\uff0c\u8fd8\u201c\u6709\u9650\u7684\u51e0\u79cd\u7c7b\u578b\u201d\u3002<\/p>\n<p>\u5bc6\u5c01\u7c7b\u548c\u666e\u901a\u7684\u7c7b\uff0copen \u7684\u7c7b\uff0c\u9664\u4e86\u4e0d\u80fd\u5b9e\u4f8b\u5316\u5916\u5230\u5e95\u5728\u8bbe\u8ba1\u610f\u56fe\u548c\u610f\u4e49\u4e0a\u533a\u522b\u5728\u54ea\u91cc\u554a\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3890274\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : maninfog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sealed class \u7ed3\u5408 when \u4f7f\u7528\u5f88\u9999\uff0c\u7279\u522b\u662f\u5728\u505a\u4e00\u4e9b\u4e1a\u52a1\u8bbe\u8ba1\u7684\u65f6\u5019\u3002\u53ef\u4ee5\u770b\u770b\u8fd9\u4e2a\u89c6\u9891\uff1a <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3890275\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : billlee <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Sealed class \u662f\u6307\u4ed6\u7684\u5b50\u7c7b\u7c7b\u578b\u662f\u6709\u9650\u7684\uff0c\u4ed6\u7684\u6240\u6709\u5b50\u7c7b\u90fd\u8981\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u4e2d\u5b9a\u4e49\uff0c\u5176\u5b83\u6587\u4ef6\u4e2d\u4e0d\u80fd\u5b9a\u4e49\u8fd9\u4e2a\u7c7b\u7684\u5b50\u7c7b\u3002\u5e38\u7528\u6765\u4ee3\u66ff enum.<\/p>\n<p>\u5c11\u770b\u4e71\u4e03\u516b\u7cdf\u7684\u4e2d\u6587\u7ffb\u8bd1\u5427\uff0c\u5c24\u5176\u662f\u7ffb\u8bd1\u9519\u7684\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3890276\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Newyorkcity <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @maninfog \u989d \u8fde\u63a5\u5df2\u91cd\u7f6e \u53ef\u4ee5\u5728\u89c6\u9891\u7684\u5730\u5740\u91cc\u52a0\u70b9\u4e2d\u6587\u5e72\u6270\u4e00\u4e0b v \u7ad9\u81ea\u52a8\u5904\u7406\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>kotlin \u4e2d\u7684\u5bc6\u5c01\u7c7b\u5230\u5e95\u662f\u4e00\u4e2a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/173992"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173992"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/173992\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173992"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}