{"id":685,"date":"2023-06-11T00:49:05","date_gmt":"2022-10-21T23:24:19","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/"},"modified":"2025-08-01T01:38:56","modified_gmt":"2025-07-31T16:38:56","slug":"java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/","title":{"rendered":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3"},"content":{"rendered":"<p>\u4eca\u65e5\u306f\u3001\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3<\/h2>\n<p>GoF\u306b\u3088\u308b\u3068\u3001\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u76ee\u7684\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<blockquote><p>\u591a\u304f\u306e\u7d30\u7c92\u5ea6\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u52b9\u7387\u7684\u306b\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u5171\u6709\u3092\u5229\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/blockquote>\n<p>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30d5\u30a1\u30b5\u30fc\u30c9\u30d1\u30bf\u30fc\u30f3\u3001\u30a2\u30c0\u30d7\u30bf\u30fc\u30d1\u30bf\u30fc\u30f3\u3001\u304a\u3088\u3073\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u30d1\u30bf\u30fc\u30f3\u306e\u3088\u3046\u306a\u69cb\u9020\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30af\u30e9\u30b9\u306e\u591a\u304f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u30e1\u30e2\u30ea\u30b9\u30da\u30fc\u30b9\u3092\u6d88\u8cbb\u3059\u308b\u305f\u3081\u3001\u30e1\u30e2\u30ea\u306e\u8ca0\u8377\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30e2\u30d0\u30a4\u30eb\u30c7\u30d0\u30a4\u30b9\u3084\u7d44\u307f\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u306e\u30e1\u30e2\u30ea\u304c\u5236\u7d04\u3055\u308c\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u306b\u3068\u3063\u3066\u91cd\u8981\u3067\u3059\u3002\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u9069\u7528\u3059\u308b\u524d\u306b\u3001\u4ee5\u4e0b\u306e\u8981\u7d20\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>The number of Objects to be created by application should be huge.<\/li>\n<li>The object creation is heavy on memory and it can be time consuming too.<\/li>\n<li>The object properties can be divided into intrinsic and extrinsic properties, extrinsic properties of an Object should be defined by the client program.<\/li>\n<\/ul>\n<p>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d1\u30bf\u30fc\u30f3\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5185\u5728\u7684\u306a\u3082\u306e\u3068\u5916\u5728\u7684\u306a\u3082\u306e\u306b\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5185\u5728\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30e6\u30cb\u30fc\u30af\u306b\u3057\u3001\u5916\u5728\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u8a2d\u5b9a\u3055\u308c\u3001\u3055\u307e\u3056\u307e\u306a\u64cd\u4f5c\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u5186\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u8272\u3084\u5e45\u306a\u3069\u306e\u5916\u5728\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d1\u30bf\u30fc\u30f3\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u5171\u6709\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3059\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d5\u30a1\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u7dda\u3068\u6955\u5186\u3067\u63cf\u753b\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001Shape\u3068\u3044\u3046\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u3001\u305d\u306e\u5177\u8c61\u30af\u30e9\u30b9\u3067\u3042\u308bLine\u3068Oval\u3092\u7528\u610f\u3057\u307e\u3059\u3002\u6955\u5186\u306e\u30af\u30e9\u30b9\u306b\u306f\u5185\u5728\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u3001\u4e0e\u3048\u3089\u308c\u305f\u8272\u3067\u6955\u5186\u3092\u5857\u308a\u3064\u3076\u3059\u304b\u3069\u3046\u304b\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u304c\u3001\u7dda\u306b\u306f\u5185\u5728\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3068\u5177\u8c61\u30af\u30e9\u30b9<\/h3>\n<p>Shape.java\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\u5f62.java\u300d\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.design.flyweight;\r\n\r\nimport java.awt.Color;\r\nimport java.awt.Graphics;\r\n\r\npublic interface Shape {\r\n\r\n\tpublic void draw(Graphics g, int x, int y, int width, int height,\r\n\t\t\tColor color);\r\n}\r\n<\/code><\/pre>\n<p>Line.java \u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1a\u300cLine\u30af\u30e9\u30b9\u300d<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.design.flyweight;\r\n\r\nimport java.awt.Color;\r\nimport java.awt.Graphics;\r\n\r\npublic class Line implements Shape {\r\n\r\n\tpublic Line(){\r\n\t\tSystem.out.println(\"Creating Line object\");\r\n\t\t\/\/adding time delay\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}\r\n\t@Override\r\n\tpublic void draw(Graphics line, int x1, int y1, int x2, int y2,\r\n\t\t\tColor color) {\r\n\t\tline.setColor(color);\r\n\t\tline.drawLine(x1, y1, x2, y2);\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u30aa\u30fc\u30d0\u30eb.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.design.flyweight;\r\n\r\nimport java.awt.Color;\r\nimport java.awt.Graphics;\r\n\r\npublic class Oval implements Shape {\r\n\t\r\n\t\/\/intrinsic property\r\n\tprivate boolean fill;\r\n\t\r\n\tpublic Oval(boolean f){\r\n\t\tthis.fill=f;\r\n\t\tSystem.out.println(\"Creating Oval object with fill=\"+f);\r\n\t\t\/\/adding time delay\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}\r\n\t@Override\r\n\tpublic void draw(Graphics circle, int x, int y, int width, int height,\r\n\t\t\tColor color) {\r\n\t\tcircle.setColor(color);\r\n\t\tcircle.drawOval(x, y, width, height);\r\n\t\tif(fill){\r\n\t\t\tcircle.fillOval(x, y, width, height);\r\n\t\t}\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u610f\u56f3\u7684\u306b\u9045\u5ef6\u3092\u5c0e\u5165\u3057\u3066\u3001\u5177\u4f53\u7684\u306a\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u3067\u3082\u3001\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d1\u30bf\u30fc\u30f3\u304c\u4f7f\u7528\u3067\u304d\u308b\u3053\u3068\u3092\u660e\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d5\u30a1\u30af\u30c8\u30ea\u30fc<\/h3>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3059\u308b\u305f\u3081\u306b\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u5de5\u5834\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30de\u30c3\u30d7\u3092\u5de5\u5834\u306b\u4fdd\u6301\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u547c\u3073\u51fa\u3057\u3092\u884c\u3046\u3068\u3001HashMap\u304b\u3089\u8fd4\u3055\u308c\u308b\u3079\u304d\u3067\u3059\u3002\u3082\u3057\u898b\u3064\u304b\u3089\u306a\u3051\u308c\u3070\u3001\u65b0\u3057\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30de\u30c3\u30d7\u306b\u5165\u308c\u3066\u304b\u3089\u305d\u308c\u3092\u8fd4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u306f\u3001\u3059\u3079\u3066\u306e\u672c\u8cea\u7684\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u5de5\u5834\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002ShapeFactory.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.design.flyweight;\r\n\r\nimport java.util.HashMap;\r\n\r\npublic class ShapeFactory {\r\n\r\n\tprivate static final HashMap&lt;ShapeType,Shape&gt; shapes = new HashMap&lt;ShapeType,Shape&gt;();\r\n\r\n\tpublic static Shape getShape(ShapeType type) {\r\n\t\tShape shapeImpl = shapes.get(type);\r\n\r\n\t\tif (shapeImpl == null) {\r\n\t\t\tif (type.equals(ShapeType.OVAL_FILL)) {\r\n\t\t\t\tshapeImpl = new Oval(true);\r\n\t\t\t} else if (type.equals(ShapeType.OVAL_NOFILL)) {\r\n\t\t\t\tshapeImpl = new Oval(false);\r\n\t\t\t} else if (type.equals(ShapeType.LINE)) {\r\n\t\t\t\tshapeImpl = new Line();\r\n\t\t\t}\r\n\t\t\tshapes.put(type, shapeImpl);\r\n\t\t}\r\n\t\treturn shapeImpl;\r\n\t}\r\n\t\r\n\tpublic static enum ShapeType{\r\n\t\tOVAL_FILL,OVAL_NOFILL,LINE;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>Java Enum\u3092\u4f7f\u3046\u3053\u3068\u3067\u578b\u306e\u5b89\u5168\u6027\u304c\u78ba\u4fdd\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3001Java\u306eComposition\uff08shapes map\uff09\u3068Factory\u30d1\u30bf\u30fc\u30f3\u304cgetShape\u30e1\u30bd\u30c3\u30c9\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f8b<\/h3>\n<p>\u4ee5\u4e0b\u306b\u306f\u3001\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d1\u30bf\u30fc\u30f3\u306e\u5b9f\u88c5\u3092\u4f7f\u7528\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308a\u307e\u3059\u3002DrawingClient.java<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.design.flyweight;\r\n\r\nimport java.awt.BorderLayout;\r\nimport java.awt.Color;\r\nimport java.awt.Container;\r\nimport java.awt.Graphics;\r\nimport java.awt.event.ActionEvent;\r\nimport java.awt.event.ActionListener;\r\n\r\nimport javax.swing.JButton;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JPanel;\r\n\r\nimport com.scdev.design.flyweight.ShapeFactory.ShapeType;\r\n\r\npublic class DrawingClient extends JFrame{\r\n\r\n\tprivate static final long serialVersionUID = -1350200437285282550L;\r\n\tprivate final int WIDTH;\r\n\tprivate final int HEIGHT;\r\n\r\n\tprivate static final ShapeType shapes[] = { ShapeType.LINE, ShapeType.OVAL_FILL,ShapeType.OVAL_NOFILL };\r\n\tprivate static final Color colors[] = { Color.RED, Color.GREEN, Color.YELLOW };\r\n\t\r\n\tpublic DrawingClient(int width, int height){\r\n\t\tthis.WIDTH=width;\r\n\t\tthis.HEIGHT=height;\r\n\t\tContainer contentPane = getContentPane();\r\n\r\n\t\tJButton startButton = new JButton(\"Draw\");\r\n\t\tfinal JPanel panel = new JPanel();\r\n\r\n\t\tcontentPane.add(panel, BorderLayout.CENTER);\r\n\t\tcontentPane.add(startButton, BorderLayout.SOUTH);\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetVisible(true);\r\n\r\n\t\tstartButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent event) {\r\n\t\t\t\tGraphics g = panel.getGraphics();\r\n\t\t\t\tfor (int i = 0; i &lt; 20; ++i) {\r\n\t\t\t\t\tShape shape = ShapeFactory.getShape(getRandomShape());\r\n\t\t\t\t\tshape.draw(g, getRandomX(), getRandomY(), getRandomWidth(),\r\n\t\t\t\t\t\t\tgetRandomHeight(), getRandomColor());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\t\r\n\tprivate ShapeType getRandomShape() {\r\n\t\treturn shapes[(int) (Math.random() * shapes.length)];\r\n\t}\r\n\r\n\tprivate int getRandomX() {\r\n\t\treturn (int) (Math.random() * WIDTH);\r\n\t}\r\n\r\n\tprivate int getRandomY() {\r\n\t\treturn (int) (Math.random() * HEIGHT);\r\n\t}\r\n\r\n\tprivate int getRandomWidth() {\r\n\t\treturn (int) (Math.random() * (WIDTH \/ 10));\r\n\t}\r\n\r\n\tprivate int getRandomHeight() {\r\n\t\treturn (int) (Math.random() * (HEIGHT \/ 10));\r\n\t}\r\n\r\n\tprivate Color getRandomColor() {\r\n\t\treturn colors[(int) (Math.random() * colors.length)];\r\n\t}\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\tDrawingClient drawing = new DrawingClient(500,600);\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>\u30d5\u30ec\u30fc\u30e0\u5185\u3067\u3055\u307e\u3056\u307e\u306a\u5f62\u306e\u751f\u6210\u3092\u884c\u3046\u305f\u3081\u306b\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5024\u751f\u6210\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u4e0a\u8a18\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6700\u521d\u306eLine Object\u304a\u3088\u3073fill\u304ctrue\u304a\u3088\u3073false\u306eOval\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u306b\u9045\u5ef6\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5171\u6709\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u901f\u304f\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u8907\u6570\u56de\u300cDraw\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30d5\u30ec\u30fc\u30e0\u306f\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u4e0a\u3067\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5171\u6709\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Creating Line object\r\nCreating Oval object with fill=true\r\nCreating Oval object with fill=false\r\n<\/code><\/pre>\n<p>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30d1\u30bf\u30fc\u30f3\u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0a\u3067\u3059\u3002\u4eca\u5f8c\u306e\u8a18\u4e8b\u3067\u306f\u3001\u4ed6\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3082\u3057\u6c17\u306b\u5165\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u3001\u30b3\u30e1\u30f3\u30c8\u6b04\u306b\u3054\u610f\u898b\u3092\u304a\u5bc4\u305b\u3044\u305f\u3060\u304d\u3001\u4ed6\u306e\u65b9\u3005\u3068\u3082\u5171\u6709\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>JDK\u5185\u3067\u306eFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u4f8b<\/h3>\n<p>\u3059\u3079\u3066\u306e\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u306evalueOf()\u30e1\u30bd\u30c3\u30c9\u306f\u3001Flyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u4f7f\u7528\u3092\u793a\u3059\u30ad\u30e3\u30c3\u30b7\u30e5\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6700\u826f\u306e\u4f8b\u306f\u3001Java\u306eString\u30af\u30e9\u30b9\u306eString Pool\u5b9f\u88c5\u3067\u3059\u3002<\/p>\n<h3>\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4ee5\u4e0b\u306f\u65e5\u672c\u8a9e\u3067\u306e\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\uff1a<\/ol>\n<\/li>\n<\/ol>\n<p>\u4f8b\u3048\u3070\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30fc\u30c9\u306fFlyweight\u30d5\u30a1\u30af\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u5f37\u5236\u3055\u308c\u307e\u305b\u3093\u304c\u3001Flyweight\u30d1\u30bf\u30fc\u30f3\u306e\u5b9f\u88c5\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b3\u30fc\u30c9\u306b\u5f37\u5236\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b8c\u5168\u306a\u30c7\u30b6\u30a4\u30f3\u306e\u6c7a\u5b9a\u3067\u3059\u3002<br \/>\nFlyweight\u30d1\u30bf\u30fc\u30f3\u306f\u8907\u96d1\u3055\u3092\u5c0e\u5165\u3059\u308b\u305f\u3081\u3001\u5171\u6709\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6570\u304c\u591a\u3044\u5834\u5408\u306f\u30e1\u30e2\u30ea\u3068\u6642\u9593\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u8ce2\u660e\u306b\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nFlyweight\u30d1\u30bf\u30fc\u30f3\u306e\u5b9f\u88c5\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u56fa\u6709\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u6570\u304c\u591a\u3044\u5834\u5408\u306b\u306f\u3001\u30d5\u30a1\u30af\u30c8\u30ea\u30af\u30e9\u30b9\u306e\u5b9f\u88c5\u304c\u8907\u96d1\u306b\u306a\u308b\u305f\u3081\u3001\u5f79\u306b\u7acb\u3061\u307e\u305b\u3093\u3002<\/p>\n<p>Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306f\u3001\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u3064\u3044\u3066\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3 GoF\u306b\u3088\u308b\u3068\u3001\u30d5\u30e9\u30a4\u30a6\u30a7\u30a4\u30c8\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u76ee\u7684\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 \u591a\u304f\u306e\u7d30\u7c92\u5ea6\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u52b9\u7387\u7684\u306b\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-685","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>Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\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\/java\u306b\u304a\u3051\u308bflyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\" \/>\n<meta property=\"og:description\" content=\"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\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\/java\u306b\u304a\u3051\u308bflyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-21T23:24:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:38:56+00:00\" \/>\n<meta name=\"author\" content=\"\u7d50\u8863, \u6625\u82b1\" \/>\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=\"\u7d50\u8863, \u6625\u82b1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"16\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\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/\",\"name\":\"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-10-21T23:24:19+00:00\",\"dateModified\":\"2025-07-31T16:38:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\"},\"description\":\"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\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\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\"}]},{\"@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\/e52a686063ac76fd8cc6f539d41497ac\",\"name\":\"\u7d50\u8863, \u6625\u82b1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g\",\"caption\":\"\u7d50\u8863, \u6625\u82b1\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yuiharuka\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3 - Blog - Silicon Cloud","description":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\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\/java\u306b\u304a\u3051\u308bflyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\/","og_locale":"ja_JP","og_type":"article","og_title":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3","og_description":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\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\/java\u306b\u304a\u3051\u308bflyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-21T23:24:19+00:00","article_modified_time":"2025-07-31T16:38:56+00:00","author":"\u7d50\u8863, \u6625\u82b1","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7d50\u8863, \u6625\u82b1","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"16\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/","name":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-10-21T23:24:19+00:00","dateModified":"2025-07-31T16:38:56+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac"},"description":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\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\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java\u306b\u304a\u3051\u308bFlyweight\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3"}]},{"@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\/e52a686063ac76fd8cc6f539d41497ac","name":"\u7d50\u8863, \u6625\u82b1","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g","caption":"\u7d50\u8863, \u6625\u82b1"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yuiharuka\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bflyweight%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/685","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=685"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":43723,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/685\/revisions\/43723"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}