{"id":482,"date":"2023-10-20T14:38:15","date_gmt":"2023-01-14T05:19:00","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/"},"modified":"2025-07-31T23:55:47","modified_gmt":"2025-07-31T14:55:47","slug":"java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/","title":{"rendered":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002"},"content":{"rendered":"<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bf0daa94e2bdf7bc291\/0-0.png\" alt=\"\" \/><\/div>\n<h3>\u30b8\u30e3\u30d0\u30ad\u30e5\u30fc<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Java\u306e\u30ad\u30e5\u30fc\u306b\u3064\u3044\u3066\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>java.util.Queue interface is a subtype of java.util.Collection interface.<\/li>\n<li>Just like a real-world queue (for instance, in a bank or at ATM), Queue inserts elements at the end of the queue and removes from the beginning of the queue.<\/li>\n<li>Java Queue represents an ordered list of elements.<\/li>\n<li>Java Queue follows FIFO order to insert and remove it\u2019s elements. FIFO stands for First In First Out.<\/li>\n<li>Java Queue supports all methods of Collection interface.<\/li>\n<li>Most frequently used Queue implementations are LinkedList, ArrayBlockingQueue and PriorityQueue.<\/li>\n<li>BlockingQueues do not accept null elements. If we perform any null related operation, it throws NullPointerException.<\/li>\n<li>BlockingQueues are used to implement Producer\/Consumer based applications.<\/li>\n<li>BlockingQueues are thread-safe.<\/li>\n<li>All Queues which are available in java.util package are Unbounded Queues and Queues which are available in java.util.concurrent package are Bounded Queues.<\/li>\n<li>All Deques are not thread-safe.<\/li>\n<li>ConcurrentLinkedQueue is an unbounded thread-safe Queue based on linked nodes.<\/li>\n<li>All Queues supports insertion at the tail of the queue and removal at the head of the queue, except Deques.<\/li>\n<li>Deques are queues but they support element insertion and removal at both ends.<\/li>\n<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bf0daa94e2bdf7bc291\/4-0.png\" alt=\"\" \/><\/div>\n<h3>Java\u306eQueue\u30af\u30e9\u30b9\u306e\u30c0\u30a4\u30a2\u30b0\u30e9\u30e0\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bf0daa94e2bdf7bc291\/6-0.jpg\" alt=\"\" \/><\/div>\n<h3>Java\u306e\u30ad\u30e5\u30fc\u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u4fbf\u5229\u3067\u983b\u7e41\u306b\u4f7f\u7528\u3055\u308c\u308bJava\u306eQueue\u30e1\u30bd\u30c3\u30c9\u306e\u3044\u304f\u3064\u304b\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ol>Set\u306e\u8981\u7d20\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306eint size()\u30e1\u30bd\u30c3\u30c9\u3001Set\u304c\u7a7a\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306eboolean isEmpty()\u30e1\u30bd\u30c3\u30c9\u3001\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u304c\u3053\u306eSet\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306btrue\u3092\u8fd4\u3059boolean contains(Object o)\u30e1\u30bd\u30c3\u30c9\u3001\u3053\u306eSet\u306e\u8981\u7d20\u306b\u5bfe\u3059\u308b\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u3092\u8fd4\u3059Iterator iterator()\u30e1\u30bd\u30c3\u30c9\uff08\u8981\u7d20\u306e\u9806\u5e8f\u306f\u7279\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\uff09\u3001\u6307\u5b9a\u3055\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u308b\u8981\u7d20\u3092\u3053\u306eSet\u304b\u3089\u3059\u3079\u3066\u524a\u9664\u3059\u308bboolean removeAll(Collection c)\u30e1\u30bd\u30c3\u30c9\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u64cd\u4f5c\uff09\u3001\u6307\u5b9a\u3055\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u308b\u8981\u7d20\u306e\u307f\u3092\u3053\u306eSet\u306b\u4fdd\u6301\u3059\u308bboolean retainAll(Collection c)\u30e1\u30bd\u30c3\u30c9\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u64cd\u4f5c\uff09\u3001Set\u304b\u3089\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306evoid clear()\u30e1\u30bd\u30c3\u30c9\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u3092\u53d6\u5f97\u3057\u3066\u524a\u9664\u3059\u308b\u305f\u3081\u306eE remove()\u30e1\u30bd\u30c3\u30c9\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u3092\u53d6\u5f97\u3057\u3066\u524a\u9664\u3057\u3001\u30ad\u30e5\u30fc\u304c\u7a7a\u306e\u5834\u5408\u306fnull\u3092\u8fd4\u3059E poll()\u30e1\u30bd\u30c3\u30c9\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u3092\u53d6\u5f97\u3059\u308b\u304c\u524a\u9664\u306f\u305b\u305a\u3001\u30ad\u30e5\u30fc\u304c\u7a7a\u306e\u5834\u5408\u306fnull\u3092\u8fd4\u3059E peek()\u30e1\u30bd\u30c3\u30c9\u3001\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u3092\u30ad\u30e5\u30fc\u306b\u633f\u5165\u3067\u304d\u308b\u5834\u5408\u306b\u306f\u5bb9\u91cf\u5236\u9650\u3092\u5b88\u308a\u306a\u304c\u3089\u3059\u3050\u306b\u633f\u5165\u3057\u3001\u6210\u529f\u3057\u305f\u5834\u5408\u306ftrue\u3092\u8fd4\u3057\u3001\u73fe\u5728\u5229\u7528\u53ef\u80fd\u306a\u30b9\u30da\u30fc\u30b9\u304c\u306a\u3044\u5834\u5408\u306fIllegalStateException\u3092\u30b9\u30ed\u30fc\u3059\u308bboolean offer(E e)\u30e1\u30bd\u30c3\u30c9\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u3092\u53d6\u5f97\u3059\u308b\u304c\u524a\u9664\u306f\u305b\u305a\u3001\u30ad\u30e5\u30fc\u304c\u7a7a\u306e\u5834\u5408\u306fnull\u3092\u8fd4\u3059E element()\u30e1\u30bd\u30c3\u30c9\u3001\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u3092\u30ad\u30e5\u30fc\u306b\u633f\u5165\u3067\u304d\u308b\u5834\u5408\u306b\u306f\u5bb9\u91cf\u5236\u9650\u3092\u5b88\u308a\u306a\u304c\u3089\u3059\u3050\u306b\u633f\u5165\u3057\u3001\u6210\u529f\u3057\u305f\u5834\u5408\u306ftrue\u3092\u8fd4\u3057\u3001\u73fe\u5728\u5229\u7528\u53ef\u80fd\u306a\u30b9\u30da\u30fc\u30b9\u304c\u306a\u3044\u5834\u5408\u306fIllegalStateException\u3092\u30b9\u30ed\u30fc\u3059\u308bboolean add(E e)\u30e1\u30bd\u30c3\u30c9\u3001\u3053\u306eSet\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u542b\u3080\u914d\u5217\u3092\u8fd4\u3059Object[] toArray()\u30e1\u30bd\u30c3\u30c9\uff08\u8981\u7d20\u306e\u9806\u5e8f\u306f\u30a4\u30c6\u30ec\u30fc\u30bf\u30fc\u306b\u3088\u3063\u3066\u4fdd\u8a3c\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u540c\u3058\u9806\u5e8f\u3067\u8981\u7d20\u3092\u8fd4\u3055\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\uff09\u3002<\/ol>\n<h3>Java\u306e\u30ad\u30e5\u30fc\u306e\u57fa\u672c<\/h3>\n<p>Java\u306eQueue\u306fJava\u306eCollection\u3092\u62e1\u5f35\u3059\u308b\u305f\u3081\u3001\u3059\u3079\u3066\u306eCollection\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u64cd\u4f5c\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u3044\u304f\u3064\u304b\u306e\u7c21\u5358\u306a\u64cd\u4f5c\u3092\u63a2\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.queue;\r\nimport java.util.*;\r\n\r\npublic class QueueExample {\r\n   public static void main(String[] args) {\r\n\t\t\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tqueue.add(\"one\");\r\n\tqueue.add(\"two\");\r\n\tqueue.add(\"three\");\r\n\tqueue.add(\"four\");\r\n\tSystem.out.println(queue);\r\n\t\t\r\n\tqueue.remove(\"three\");\r\n\tSystem.out.println(queue);\r\n\tSystem.out.println(\"Queue Size: \" + queue.size());\r\n\tSystem.out.println(\"Queue Contains element 'two' or not? : \" + queue.contains(\"two\"));\r\n\r\n\t\/\/ To empty the queue\r\n\tqueue.clear();\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u51fa\u529b\uff1a<\/p>\n<pre class=\"post-pre\"><code>[one, two, three, four]\r\n[one, two, four]\r\nQueue Size: 3\r\nQueue Contains element 'two' or not? : true\r\n<\/code><\/pre>\n<h3>Java\u306e\u914d\u5217\u3092\u30ad\u30e5\u30fc\u306b\u5909\u63db\u3059\u308b\u3002<\/h3>\n<p>\u3053\u3053\u3067\u306f\u3001\u300cCollections.addAll()\u300d\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066Java\u306e\u914d\u5217\u3092Queue\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u3068\u3001\u7c21\u5358\u306a\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.*;\r\n\r\npublic class ArrayToQueue {\r\n    public static void main(String[] args) {\r\n\t\t\r\n\tString nums[] = {\"one\",\"two\",\"three\",\"four\",\"five\"};\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tCollections.addAll(queue, nums);\r\n\tSystem.out.println(queue);\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[one, two, three, four, five]\r\n<\/code><\/pre>\n<h3>\u30b8\u30e3\u30ef\u30ad\u30e5\u30fc\u3092\u914d\u5217\u306b\u5909\u63db<\/h3>\n<p>\u3053\u3053\u3067\u306f\u3001Java Queue\u3092Java Array\u306b\u5909\u63db\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u300ctoArray()\u300d\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u4f8b\u3092\u63a2\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.*;\r\n\r\npublic class QueueToArray {\r\n   public static void main(String[] args) {\r\n\t\t\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tqueue.add(\"one\");\r\n\tqueue.add(\"two\");\r\n\tqueue.add(\"three\");\r\n\tqueue.add(\"four\");\r\n\tqueue.add(\"five\");\r\n\t\t\r\n\tString strArray[] = queue.toArray(new String[queue.size()]);\r\n\tSystem.out.println(Arrays.toString(strArray)); \r\n\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u51fa\u529b\uff1a- \u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[one, two, three, four, five]\r\n<\/code><\/pre>\n<h3>Java \u30ad\u30e5\u30fc\u306e\u4e00\u822c\u7684\u306a\u64cd\u4f5c<\/h3>\n<p>Java\u306e\u30ad\u30e5\u30fc\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u64cd\u4f5c\u304a\u3088\u3073\u3044\u304f\u3064\u304b\u306e\u8ffd\u52a0\u306e\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u30022\u3064\u306e\u5f62\u5f0f\u3067\u307b\u307c\u3059\u3079\u3066\u306e\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>One set of operations throws an exception if the operation fails.<\/li>\n<li>The other set of operations returns a special value if the operation fails.<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u8868\u306f\u3001\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u306e\u4e00\u822c\u7684\u306a\u64cd\u4f5c\u3092\u7c21\u6f54\u306b\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Operation<\/th>\n<th>Throws exception<\/th>\n<th>Special value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Insert<\/td>\n<td>add(e)<\/td>\n<td>offer(e)<\/td>\n<\/tr>\n<tr>\n<td>Remove<\/td>\n<td>remove()<\/td>\n<td>poll()<\/td>\n<\/tr>\n<tr>\n<td>Examine<\/td>\n<td>element()<\/td>\n<td>peek()<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4eca\u5f8c\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u305d\u308c\u305e\u308c\u306e\u624b\u9806\u3092\u8a73\u7d30\u306b\u8aac\u660e\u3057\u3001\u5f79\u7acb\u3064\u4f8b\u3092\u4ea4\u3048\u3066\u8b70\u8ad6\u3057\u307e\u3059\u3002<\/p>\n<h3>Java\u306e\u30ad\u30e5\u30fc\u306b\u304a\u3051\u308b\u8981\u7d20\u306e\u8ffd\u52a0\u64cd\u4f5c<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Java\u306e\u30ad\u30e5\u30fc\u306e\u633f\u5165\u64cd\u4f5c\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\u3044\u304f\u3064\u304b\u306e\u6709\u7528\u306a\u4f8b\u3092\u7528\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u306e\u64cd\u4f5c\u304c\u6210\u529f\u3059\u308b\u3068\u3001&#8221;true&#8221;\u3068\u3044\u3046\u5024\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002\u30ad\u30e5\u30fc\u306f2\u3064\u306e\u5f62\u5f0f\u3067\u633f\u5165\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Queue.add(e):<br \/>\nIt throws an exception if the operation fails.- Queue.offer(e):<br \/>\nIt returns a special value if the operation fails.<\/li>\n<\/ul>\n<p>\u3053\u3053\u3067\u306f\u300c\u7279\u5225\u306a\u5024\u300d\u306f\u300cfalse\u300d\u307e\u305f\u306f\u300cnull\u300d\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u306eadd()\u64cd\u4f5c<\/h3>\n<p>\u65b0\u3057\u3044\u8981\u7d20\u3092\u30ad\u30e5\u30fc\u306b\u633f\u5165\u3059\u308b\u305f\u3081\u306b\u306f\u3001add()\u64cd\u4f5c\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u633f\u5165\u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u3001\u300ctrue\u300d\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001java.lang.IllegalStateException\u3092\u30b9\u30ed\u30fc\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u7c21\u5358\u306a\u4f8b\u3092\u958b\u767a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.concurrent.*;\r\n\r\npublic class QueueAddOperation {\r\n   public static void main(String[] args) {\r\n\t\t\r\n\tBlockingQueue&lt;String&gt; queue = new ArrayBlockingQueue&lt;&gt;(2);\r\n\r\n\tSystem.out.println(queue.add(\"one\"));\r\n\tSystem.out.println(queue.add(\"two\"));\r\n\tSystem.out.println(queue);\r\n\tSystem.out.println(queue.add(\"three\"));\r\n\tSystem.out.println(queue);\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>true\r\ntrue\r\n[one, two]\r\nException in thread \"main\" java.lang.IllegalStateException: Queue full\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306e\u30ad\u30e5\u30fc\u306f2\u3064\u306e\u8981\u7d20\u306b\u9650\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001BlockingQueue.add()\u3092\u4f7f\u7528\u3057\u30663\u3064\u76ee\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u306eoffer()\u64cd\u4f5c<\/h3>\n<p>offer\uff08\uff09\u64cd\u4f5c\u306f\u3001\u65b0\u3057\u3044\u8981\u7d20\u3092\u30ad\u30e5\u30fc\u306b\u633f\u5165\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u633f\u5165\u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u3001\u305d\u308c\u306f\u300ctrue\u300d\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u300cfalse\u300d\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u793a\u3059\u305f\u3081\u306b\u30011\u3064\u306e\u7c21\u5358\u306a\u4f8b\u3092\u958b\u767a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.concurrent.*;\r\n\r\npublic class QueueOfferOperation {\r\n   public static void main(String[] args) {\r\n\t\t\r\n\tBlockingQueue&lt;String&gt; queue = new ArrayBlockingQueue&lt;&gt;(2);\r\n\r\n\tSystem.out.println(queue.offer(\"one\"));\r\n\tSystem.out.println(queue.offer(\"two\"));\r\n\tSystem.out.println(queue);\r\n\tSystem.out.println(queue.offer(\"three\"));\r\n\tSystem.out.println(queue);\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>true\r\ntrue\r\n[one, two]\r\nfalse\r\n[one, two]\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306e\u30ad\u30e5\u30fc\u306f2\u3064\u306e\u8981\u7d20\u306b\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001BlockingQueue.offer() \u64cd\u4f5c\u3092\u4f7f\u7528\u3057\u30663\u756a\u76ee\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u300cfalse\u300d\u306e\u5024\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Java\u306e\u30ad\u30e5\u30fc\u306e\u524a\u9664\u64cd\u4f5c<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u6709\u7528\u306a\u4f8b\u3092\u4ea4\u3048\u3066\u3001Java\u306e\u30ad\u30e5\u30fc\u306e\u524a\u9664\u64cd\u4f5c\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002\u524a\u9664\u64cd\u4f5c\u306f\u3001\u6210\u529f\u3057\u305f\u5834\u5408\u306b\u30ad\u30e5\u30fc\u306e\u5148\u982d\u8981\u7d20\u3092\u8fd4\u3057\u307e\u3059\u3002\u30ad\u30e5\u30fc\u306f2\u3064\u306e\u5f62\u5f0f\u3067\u524a\u9664\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Queue.remove():<br \/>\nIt throws an exception if the operation fails.- Queue.poll():<br \/>\nIt returns a special value if the operation fails.<\/li>\n<\/ul>\n<p>\u6ce8\uff1a\u3053\u3053\u3067\u306e\u7279\u5225\u306a\u5024\u306f\u3001\u300cfalse\u300d\u307e\u305f\u306f\u300cnull\u300d\u306e\u3044\u305a\u308c\u304b\u3067\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u304b\u3089\u306e\u8981\u7d20\u306e\u524a\u9664\u64cd\u4f5c<\/h3>\n<p>remove()\u64cd\u4f5c\u306f\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u524a\u9664\u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u306e\u8981\u7d20\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001java.util.NoSuchElementException\u3092\u30b9\u30ed\u30fc\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u7c21\u5358\u306a\u4f8b\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.*;\r\n\r\npublic class QueueRemoveOperation \r\n{\r\n   public static void main(String[] args) \r\n   {\t\t\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tqueue.offer(\"one\");\r\n\tqueue.offer(\"two\");\t\t\r\n\tSystem.out.println(queue);\t\t\r\n\tSystem.out.println(queue.remove());\r\n\tSystem.out.println(queue.remove());\t\t\r\n\tSystem.out.println(queue.remove());\t\t\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4e0a\u8a18\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[one, two]\r\none\r\ntwo\r\nException in thread \"main\" java.util.NoSuchElementException\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306e\u30ad\u30e5\u30fc\u306b\u306f2\u3064\u306e\u8981\u7d20\u3057\u304b\u306a\u3044\u305f\u3081\u30013\u56de\u76ee\u306bremove()\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u6ce8\u610f\uff1aQueue.remove\uff08\u8981\u7d20\uff09\u306f\u3001\u30ad\u30e5\u30fc\u304b\u3089\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u524a\u9664\u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u300ctrue\u300d\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u300cfalse\u300d\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u306epoll()\u64cd\u4f5c<\/h3>\n<p>poll()\u6f14\u7b97\u5b50\u306f\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u524a\u9664\u64cd\u4f5c\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u306e\u8981\u7d20\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u3001&#8221;null&#8221;\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u7c21\u5358\u306a\u4f8b\u3092\u958b\u767a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.*;\r\n\r\npublic class QueuePollOperation \r\n{\r\n   public static void main(String[] args) \r\n   {\t\t\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tqueue.offer(\"one\");\r\n\tqueue.offer(\"two\");\t\t\r\n\tSystem.out.println(queue);\t\t\r\n\tSystem.out.println(queue.poll());\r\n\tSystem.out.println(queue.poll());\t\t\r\n\tSystem.out.println(queue.poll());\t\t\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[one, two]\r\none\r\ntwo\r\nnull\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306e\u30ad\u30e5\u30fc\u306b\u306f2\u3064\u306e\u8981\u7d20\u3057\u304b\u306a\u3044\u305f\u3081\u30013\u56de\u76ee\u306bpoll()\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306bnull\u5024\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Java\u306e\u30ad\u30e5\u30fc\u306e\u64cd\u4f5c\u3092\u8abf\u3079\u308b\u3002<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Java\u306eQueue\u306e\u8abf\u67fb\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u7d30\u304b\u304f\u8aac\u660e\u3057\u3001\u3044\u304f\u3064\u304b\u306e\u4fbf\u5229\u306a\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u8981\u7d20\u304c\u524a\u9664\u3055\u308c\u305a\u306b\u8fd4\u3055\u308c\u307e\u3059\u3002Queue\u306f\u3001\u8abf\u67fb\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u30922\u3064\u306e\u5f62\u5f0f\u3067\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Queue.element():<br \/>\nIt throws an exception if the operation fails.- Queue.peek():<br \/>\nIt returns a special value if the operation fails.<\/li>\n<\/ul>\n<p>\u6ce8\u610f\uff1a\u3053\u3053\u3067\u306e\u7279\u5225\u306a\u5024\u306f\u300cfalse\u300d\u307e\u305f\u306f\u300cnull\u300d\u306e\u3044\u305a\u308c\u304b\u3067\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u306eelement()\u64cd\u4f5c<\/h3>\n<p>\u8981\u7d20\uff08\uff09\u64cd\u4f5c\u306f\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u305b\u3093\u3002\u6b63\u5e38\u306b\u691c\u67fb\u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u306e\u8981\u7d20\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001java.util.NoSuchElementException\u3092\u30b9\u30ed\u30fc\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u7c21\u5358\u306a\u4f8b\u3092\u958b\u767a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.*;\r\n\r\npublic class QueueElementOperation {\r\n   public static void main(String[] args) {\r\n\t\t\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tqueue.add(\"one\");\r\n\t\t\r\n\tSystem.out.println(queue.element());\r\n\tSystem.out.println(queue);\r\n\tqueue.clear();\r\n\tSystem.out.println(queue.element());\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>one\r\n[one]\r\nException in thread \"main\" java.util.NoSuchElementException\r\n<\/code><\/pre>\n<p>\u3082\u3057\u7a7a\u306eQueue\u306belement()\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u306e\u5148\u982d\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u64cd\u4f5c\u3002<\/h3>\n<p>peek\uff08\u30d4\u30fc\u30af\uff09\u64cd\u4f5c\u306f\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u8981\u7d20\u3092\u524a\u9664\u305b\u305a\u306b\u30ad\u30e5\u30fc\u304b\u3089\u53d6\u5f97\u3057\u307e\u3059\u3002\u3053\u306e\u64cd\u4f5c\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u30ad\u30e5\u30fc\u306e\u5148\u982d\u306e\u8981\u7d20\u3092\u8fd4\u3057\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u3001null\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u793a\u3059\u305f\u3081\u306b\u3001\u7c21\u5358\u306a\u4f8b\u3092\u958b\u767a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>import java.util.*;\r\n\r\npublic class QueuePeekOperation {\r\n   public static void main(String[] args) {\r\n\t\t\r\n\tQueue&lt;String&gt; queue = new LinkedList&lt;&gt;();\r\n\tqueue.add(\"one\");\r\n\t\t\r\n\tSystem.out.println(queue.peek());\r\n\tSystem.out.println(queue);\r\n\tqueue.clear();\r\n\tSystem.out.println(queue.peek());\r\n   }\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>one\r\n[one]\r\nnull\r\n<\/code><\/pre>\n<p>\u3082\u3057\u7a7a\u306e\u30ad\u30e5\u30fc\u3067peek()\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3059\u308b\u3068\u3001null\u306e\u5024\u304c\u8fd4\u3055\u308c\u307e\u3059\u304c\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u4f8b\u5916\u306f\u6295\u3052\u3089\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3>Java\u306e\u30ad\u30e5\u30fc\u306e\u30ab\u30c6\u30b4\u30ea\u30fc<\/h3>\n<p>Java\u3067\u306f\u3001\u591a\u304f\u306e\u30ad\u30e5\u30fc\u306e\u5b9f\u88c5\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u5927\u304d\u304f2\u3064\u306e\u30bf\u30a4\u30d7\u306b\u5206\u985e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Bounded Queues<\/li>\n<li>Unbounded Queues<\/li>\n<\/ul>\n<p>\u5bb9\u91cf\u306b\u3088\u3063\u3066\u5236\u9650\u3055\u308c\u308b\u30ad\u30e5\u30fc\u306f\u3001\u4f5c\u6210\u6642\u306b\u30ad\u30e5\u30fc\u306e\u6700\u5927\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30ad\u30e5\u30fc\u3067\u3059\u3002 \u305f\u3068\u3048\u3070ArrayBlockingQueue\uff08\u524d\u306e\u4f8b\u3092\u53c2\u7167\uff09\u3002 \u5bb9\u91cf\u306b\u3088\u3063\u3066\u5236\u9650\u3055\u308c\u306a\u3044\u30ad\u30e5\u30fc\u306f\u3001\u30ad\u30e5\u30fc\u306e\u30b5\u30a4\u30ba\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u30ad\u30e5\u30fc\u3067\u3059\u3002 \u305f\u3068\u3048\u3070LinkedList\uff08\u524d\u306e\u4f8b\u3092\u53c2\u7167\uff09\u3002 java.util\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3042\u308b\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u306f\u5236\u9650\u3055\u308c\u306a\u3044\u30ad\u30e5\u30fc\u3067\u3042\u308a\u3001java.util.concurrent\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3042\u308b\u30ad\u30e5\u30fc\u306f\u5236\u9650\u3055\u308c\u305f\u30ad\u30e5\u30fc\u3067\u3059\u3002 \u4ed6\u306e\u65b9\u6cd5\u3067\u306f\u3001\u3053\u308c\u3089\u306f\u6b21\u306e2\u3064\u306e\u30bf\u30a4\u30d7\u306b\u5927\u5225\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>Blocking Queues<\/li>\n<li>Non-Blocking Queues<\/li>\n<\/ul>\n<p>BlockingQueue\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u306fBlockingQueue\u3067\u3042\u308a\u3001\u305d\u306e\u4ed6\u306fNon-Blocking Queue\u3067\u3059\u3002BlockingQueue\u306f\u3001\u30b8\u30e7\u30d6\u304c\u5b8c\u4e86\u3059\u308b\u304b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u307e\u3067\u30d6\u30ed\u30c3\u30af\u3057\u3001\u4e00\u65b9\u3001Non-Blocking Queue\u306f\u305d\u3046\u3057\u307e\u305b\u3093\u3002\u4e00\u90e8\u306e\u30ad\u30e5\u30fc\u306fDeque\u3067\u3042\u308a\u3001\u4e00\u90e8\u306e\u30ad\u30e5\u30fc\u306fPriorityQueue\u3067\u3059\u3002<\/p>\n<h3>\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0\u30ad\u30e5\u30fc\u306e\u64cd\u4f5c<\/h3>\n<p>Queue\u306e2\u3064\u306e\u64cd\u4f5c\u5f62\u5f0f\u306b\u52a0\u3048\u3066\u3001BlockingQueue\u306f\u4ee5\u4e0b\u306b\u793a\u30592\u3064\u306e\u8ffd\u52a0\u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Operation<\/th>\n<th>Throws exception<\/th>\n<th>Special value<\/th>\n<th>Blocks<\/th>\n<th>Times out<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Insert<\/td>\n<td>add(e)<\/td>\n<td>offer(e)<\/td>\n<td>put(e)<\/td>\n<td>offer(e, time, unit)<\/td>\n<\/tr>\n<tr>\n<td>Remove<\/td>\n<td>remove()<\/td>\n<td>poll()<\/td>\n<td>take()<\/td>\n<td>poll(time, unit)<\/td>\n<\/tr>\n<tr>\n<td>Examine<\/td>\n<td>element()<\/td>\n<td>peek()<\/td>\n<td>N\/A<\/td>\n<td>N\/A<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4e00\u90e8\u306e\u64cd\u4f5c\u306f\u3001\u51e6\u7406\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3001\u4ed6\u306e\u64cd\u4f5c\u306f\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u307e\u3067\u30d6\u30ed\u30c3\u30af\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u304cJava\u306eQueue\u306b\u95a2\u3059\u308b\u7c21\u5358\u306a\u307e\u3068\u3081\u3067\u3059\u3002\u3053\u308c\u3089\u306eJava Queue\u306e\u4f8b\u304c\u3001Queue\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u59cb\u3081\u308b\u306e\u306b\u5f79\u7acb\u3064\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u79c1\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304c\u6c17\u306b\u5165\u3063\u305f\u308a\u3001\u63d0\u6848\u3084\u554f\u984c\u3001\u30bf\u30a4\u30d7\u30df\u30b9\u304c\u3042\u308c\u3070\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u6b8b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b8\u30e3\u30d0\u30ad\u30e5\u30fc \u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Java\u306e\u30ad\u30e5\u30fc\u306b\u3064\u3044\u3066\u3044\u304f\u3064\u304b\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 java.util.Queue interface is a subtype of java.util.Collectio [&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-482","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 Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306fJava\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\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-queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002\" \/>\n<meta property=\"og:description\" content=\"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306fJava\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\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-queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-14T05:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:55:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bf0daa94e2bdf7bc291\/0-0.png\" \/>\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=\"24\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-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/\",\"name\":\"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-01-14T05:19:00+00:00\",\"dateModified\":\"2025-07-31T14:55:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\"},\"description\":\"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306fJava\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\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-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002\"}]},{\"@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-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002 - Blog - Silicon Cloud","description":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306fJava\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\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-queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\/","og_locale":"ja_JP","og_type":"article","og_title":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002","og_description":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306fJava\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\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-queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-14T05:19:00+00:00","article_modified_time":"2025-07-31T14:55:47+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bf0daa94e2bdf7bc291\/0-0.png"}],"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":"24\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/","name":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-01-14T05:19:00+00:00","dateModified":"2025-07-31T14:55:47+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac"},"description":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306fJava\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\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-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/java-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Java Queue\uff08\u30b8\u30e3\u30f4\u30a1\u30ad\u30e5\u30fc\uff09\u306f\u3001Java\u306b\u304a\u3051\u308b\u30ad\u30e5\u30fc\uff08\u5f85\u3061\u884c\u5217\uff09\u3067\u3059\u3002"}]},{"@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-queue%ef%bc%88%e3%82%b8%e3%83%a3%e3%83%b4%e3%82%a1%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%89%e3%81%af%e3%80%81java%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%ad%e3%83%a5%e3%83%bc%ef%bc%88%e5%be%85\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/482","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=482"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":41179,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions\/41179"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}