{"id":389,"date":"2023-10-09T21:44:34","date_gmt":"2023-07-07T16:47:11","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/"},"modified":"2025-07-31T23:12:35","modified_gmt":"2025-07-31T14:12:35","slug":"kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/","title":{"rendered":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9"},"content":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Kotlin\u306e\u5c01\u5370\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u305d\u308c\u3089\u306f\u4f55\u3067\u3042\u308a\u3001\u3069\u306e\u3088\u3046\u306b\u4f7f\u7528\u3055\u308c\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u4ee5\u4e0b\u3067\u3053\u308c\u3089\u306e\u3059\u3079\u3066\u306e\u3053\u3068\u306b\u53d6\u308a\u7d44\u307f\u307e\u3059\u3002<\/p>\n<h2>Kotlin\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648b15daa94e2bdf7bbd7e\/2-0.png\" alt=\"kotlin sealed class\" \/><\/div>\n<h3>Kotlin\u306e\u5bc6\u5c01\u30af\u30e9\u30b9\u306e\u5b9f\u88c5<\/h3>\n<p>Kotlin\u3067\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306e\u5b9f\u88c5\u65b9\u6cd5\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class A{\r\n    class B : A()\r\n    class C : A()\r\n}\r\n<\/code><\/pre>\n<p>\u5c01\u5370\u3055\u308c\u305f\u30af\u30e9\u30b9\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4fee\u98fe\u5b50sealed\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5c01\u5370\u3055\u308c\u305f\u30af\u30e9\u30b9\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001\u6697\u9ed9\u7684\u306b\u62bd\u8c61\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u65b9\u6cd5\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code>fun main(args: Array&lt;String&gt;) \r\n{\r\n    var a = A() \/\/compiler error. Class A cannot be instantiated.\r\n}\r\n<\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fc\u306f\u975e\u516c\u958b\u3067\u3059\u3002\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306e\u3059\u3079\u3066\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u306f\u3001\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u306e\u307f\u578b\u306e\u30bb\u30c3\u30c8\u3092\u5236\u9650\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306f\u578b\u306e\u5b89\u5168\u6027\u3092\u78ba\u4fdd\u3059\u308b\u4e0a\u3067\u91cd\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class A{\r\n    class B : A() \r\n    {\r\n        class E : A() \/\/this works.\r\n    }\r\n    class C : A()\r\n\r\n    init {\r\n        println(\"sealed class A\")\r\n    }\r\n\r\n}\r\n\r\nclass D : A() \/\/this works\r\n{\r\nclass F: A() \/\/This won't work. Since sealed class is defined in another scope.\r\n}\r\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class A(var name: String){\r\n    class B : A(\"B\")\r\n    class C : A(\"C\")\r\n}\r\n\r\nclass D : A(\"D\")\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>fun main(args: Array&lt;String&gt;) {\r\n    \r\n    var b = A.B()\r\n    var d = D()\r\n}\r\n<\/code><\/pre>\n<p>\u30b7\u30fc\u30eb\u3055\u308c\u305f\u30af\u30e9\u30b9\u306b\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fun main(args: Array&lt;String&gt;) {\r\n\r\n    val e = A.E(\"Anupam\")\r\n    println(e) \/\/prints E(name=Anupam)\r\n\r\n    var d = A.D\r\n    d.name() \/\/prints Object D\r\n}\r\n\r\n\r\nsealed class A{\r\n    class B : A()\r\n    class C : A()\r\n    object D : A()\r\n    {\r\n         fun name()\r\n         {\r\n             println(\"Object D\")\r\n         }\r\n    }\r\n    data class E(var name: String) : A()\r\n\r\n}\r\n<\/code><\/pre>\n<h3>\u5217\u6319\u578b\u3068\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306e\u9055\u3044<\/h3>\n<p>Kotlin\u3067\u306f\u3001\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306f\u30b9\u30c6\u30ed\u30a4\u30c9\u5165\u308a\u306e\u5217\u6319\u30af\u30e9\u30b9\u3068\u8a00\u3048\u307e\u3059\u3002\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7570\u306a\u308b\u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u5217\u6319\u578b\u306f\u3059\u3079\u3066\u306e\u5217\u6319\u5b9a\u6570\u306b\u540c\u3058\u578b\u3092\u4f7f\u7528\u3059\u308b\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u3053\u3068\u306f\u5217\u6319\u30af\u30e9\u30b9\u3067\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>enum class Months(string: String){\r\nJanuary(\"Jan\"), February(2),\r\n}\r\n<\/code><\/pre>\n<p>Enum\u30af\u30e9\u30b9\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u5b9a\u6570\u306b\u5bfe\u3057\u3066\u5358\u4e00\u306e\u578b\u306e\u307f\u304c\u8a31\u53ef\u3055\u308c\u307e\u3059\u3002\u3053\u3053\u3067\u3001\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u304c\u767b\u5834\u3057\u3001\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class Months {\r\n    class January(var shortHand: String) : Months()\r\n    class February(var number: Int) : Months()\r\n    class March(var shortHand: String, var number: Int) : Months()\r\n}\r\n<\/code><\/pre>\n<p>\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u306e\u3053\u306e\u6a5f\u80fd\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3069\u306e\u3088\u3046\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u304b\uff1f\u30cb\u30e5\u30fc\u30b9\u30d5\u30a3\u30fc\u30c9\u306e\u3088\u3046\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306b\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u3001\u753b\u50cf\u3001\u30d3\u30c7\u30aa\u6295\u7a3f\u306e3\u3064\u306e\u7570\u306a\u308b\u30af\u30e9\u30b9\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class Post\r\n{\r\n    class Status(var text: String) : Post()\r\n    class Image(var url: String, var caption: String) : Post()\r\n    class Video(var url: String, var timeDuration: Int, var encoding: String): Post()\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306fEnum\u30af\u30e9\u30b9\u3067\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u5c01\u5370\u3055\u308c\u305f\u30af\u30e9\u30b9\u3068when\u6587<\/h3>\n<p>\u4ee5\u4e0b\u306e\u4f8b\u306f\u3001sealed\u30af\u30e9\u30b9\u306f\u3088\u304fwhen\u6587\u3068\u4e00\u7dd2\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002\u5404\u30b5\u30d6\u30af\u30e9\u30b9\u3068\u305d\u306e\u578b\u304c\u30b1\u30fc\u30b9\u3068\u3057\u3066\u6a5f\u80fd\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u3055\u3089\u306b\u3001sealed\u30af\u30e9\u30b9\u306f\u578b\u3092\u5236\u9650\u3059\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001when\u6587\u306eelse\u90e8\u5206\u306f\u7c21\u5358\u306b\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u4f8b\u306f\u3001\u540c\u3058\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class Shape{\r\n    class Circle(var radius: Float): Shape()\r\n    class Square(var length: Int): Shape()\r\n    class Rectangle(var length: Int, var breadth: Int): Shape()\r\n}\r\n\r\nfun eval(e: Shape) =\r\n        when (e) {\r\n            is Shape.Circle -&gt; println(\"Circle area is ${3.14*e.radius*e.radius}\")\r\n            is Shape.Square -&gt; println(\"Square area is ${e.length*e.length}\")\r\n            is Shape.Rectangle -&gt; println(\"Rectagle area is ${e.length*e.breadth}\")\r\n        }\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u79c1\u305f\u3061\u306e\u30e1\u30a4\u30f3\u95a2\u6570\u5185\u3067eval\u95a2\u6570\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>fun main(args: Array&lt;String&gt;) {\r\n\r\n    var circle = Shape.Circle(4.5f)\r\n    var square = Shape.Square(4)\r\n    var rectangle = Shape.Rectangle(4,5)\r\n\r\n    eval(circle)\r\n    eval(square)\r\n    eval(rectangle)\r\n    \/\/eval(x) \/\/compile-time error.\r\n\r\n}\r\n\r\n\/\/Following is printed on the console:\r\n\/\/Circle area is 63.585\r\n\/\/Square area is 16\r\n\/\/Rectangle area is 20\r\n<\/code><\/pre>\n<p>\u6ce8\u610f\uff1ais\u4fee\u98fe\u5b50\u306f\u3001\u30af\u30e9\u30b9\u304c\u4ee5\u4e0b\u306e\u30bf\u30a4\u30d7\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002is\u4fee\u98fe\u5b50\u306f\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u306e\u307f\u5fc5\u8981\u3067\u3042\u308a\u3001\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306aKotlin\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code>sealed class Shape{\r\n    class Circle(var radius: Float): Shape()\r\n    class Square(var length: Int): Shape()\r\n    object Rectangle: Shape()\r\n    {\r\n        var length: Int = 0\r\n        var breadth : Int = 0\r\n    }\r\n}\r\n\r\nfun eval(e: Shape) =\r\n        when (e) {\r\n            is Shape.Circle -&gt; println(\"Circle area is ${3.14*e.radius*e.radius}\")\r\n            is Shape.Square -&gt; println(\"Square area is ${e.length*e.length}\")\r\n            Shape.Rectangle -&gt; println(\"Rectangle area is ${Shape.Rectangle.length*Shape.Rectangle.breadth}\")\r\n        }\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u3063\u3066\u3001Kotlin\u306esealed class\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u7d42\u4e86\u3067\u3059\u3002\u53c2\u8003\u6587\u732e\uff1aKotlin\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Kotlin\u306e\u5c01\u5370\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u305d\u308c\u3089\u306f\u4f55\u3067\u3042\u308a\u3001\u3069\u306e\u3088\u3046\u306b\u4f7f\u7528\u3055\u308c\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u4ee5\u4e0b\u3067\u3053\u308c\u3089\u306e\u3059\u3079\u3066\u306e\u3053\u3068\u306b\u53d6\u308a\u7d44\u307f\u307e\u3059\u3002 Kotlin\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9 Kotlin\u306e\u5bc6\u5c01\u30af\u30e9\u30b9 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\" \/>\n<meta property=\"og:description\" content=\"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-07T16:47:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:12:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648b15daa94e2bdf7bbd7e\/2-0.png\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/\",\"name\":\"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-07-07T16:47:11+00:00\",\"dateModified\":\"2025-07-31T14:12:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"description\":\"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9 - Blog - Silicon Cloud","description":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\/","og_locale":"ja_JP","og_type":"article","og_title":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9","og_description":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-\u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-07T16:47:11+00:00","article_modified_time":"2025-07-31T14:12:35+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648b15daa94e2bdf7bbd7e\/2-0.png"}],"author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"8\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/","name":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-07-07T16:47:11+00:00","dateModified":"2025-07-31T14:12:35+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"description":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Kotlin \u306e\u30b7\u30fc\u30eb\u30c9\u30af\u30e9\u30b9"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/kotlin-%e3%81%ae%e3%82%b7%e3%83%bc%e3%83%ab%e3%83%89%e3%82%af%e3%83%a9%e3%82%b9\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":39966,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions\/39966"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}