{"id":31,"date":"2014-05-26T12:06:23","date_gmt":"2014-05-26T12:06:23","guid":{"rendered":"http:\/\/vkrastev1blog.com\/?p=31"},"modified":"2014-05-26T15:36:27","modified_gmt":"2014-05-26T15:36:27","slug":"java-generics-explained-in-short-form-with-examples","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2014\/05\/26\/java-generics-explained-in-short-form-with-examples\/","title":{"rendered":"\u05d2\u05e0\u05e8\u05d9\u05e7\u05d4 \u05e9\u05dc Java \u05de\u05d5\u05e1\u05d1\u05e8\u05ea \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e7\u05e6\u05e8\u05d4 \u05e2\u05dd \u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea"},"content":{"rendered":"<p>\u05d0\u05e0\u05d0 \u05e2\u05d9\u05d9\u05df \u05d1\u05e9\u05d0\u05dc\u05d5\u05ea \u05e0\u05e4\u05d5\u05e6\u05d5\u05ea \u05d0\u05dc\u05d4 \u05dc\u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3:<\/p>\n<p><a href=\"http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1\" rel=\"nofollow\">http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1<\/a><\/p>\n<p>\u05d4\u05e0\u05d4 \u05d1\u05e7\u05e6\u05e8\u05d4 \u05db\u05de\u05d4 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05d7\u05e9\u05d5\u05d1\u05d5\u05ea \u05de\u05ea\u05d5\u05da \u05e9\u05d0\u05dc\u05d5\u05ea \u05e0\u05e4\u05d5\u05e6\u05d5\u05ea \u05d6\u05d4.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05de\u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9):<\/p>\n<blockquote><p><tt> class Pair&lt;X,Y&gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 X \u05e8\u05d0\u05e9\u05d5\u05df;<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 Y \u05e9\u05e0\u05d9;<\/tt><tt> \u00a0 \u05d6\u05d5\u05d2 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 (X a1, Y a2) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e8\u05d0\u05e9\u05d5\u05df = a1;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e9\u05e0\u05d9 = a2;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 public X getFirst() { return first; }<\/tt><br \/>\n<tt> \u00a0 public Y getSecond() { return second; }<\/tt><br \/>\n<tt> \u00a0 public void setFirst(X arg)\u00a0 { first = arg; }<\/tt><br \/>\n<tt> \u00a0 public void setSecond(Y arg) { second = arg; }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05db\u05d9\u05ea\u05d4 <tt> \u05d6\u05d5\u05bc\u05d2<\/tt> \u05d9\u05e9 \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 <tt> X <\/tt> \u05d5 <tt> \u05d9<\/tt> .\u00a0 \u05d4\u05dd \u05de\u05d5\u05d7\u05dc\u05e4\u05d9\u05dd \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05db\u05d0\u05e9\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d4\u05d2\u05e0\u05e8\u05d9 <tt> \u05d6\u05d5\u05bc\u05d2<\/tt> \u05de\u05d5\u05e4\u05e2\u05dc\u05ea. \u05dc\u05de\u05e9\u05dc, \u05d1\u05d4\u05e6\u05d4\u05e8\u05d4 <tt> Pair&lt;String, Date&gt;<\/tt> \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 <tt> X<\/tt> \u05de\u05d5\u05d7\u05dc\u05e3 \u05d1\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d4\u05e1\u05d5\u05d2 <tt> \u05d7\u05d5\u05bc\u05d8<\/tt> \u05d5 <tt> \u05d9<\/tt> \u05de\u05d5\u05d7\u05dc\u05e3 \u05e2\u05dc \u05d9\u05d3\u05d9\u00a0 <tt> \u05ea\u05b7\u05d0\u05b2\u05e8\u05b4\u05d9\u05da<\/tt> .<br \/>\n\u05d4\u05d9\u05e7\u05e3 \u05d4\u05de\u05d6\u05d4\u05d9\u05dd <tt> X <\/tt> \u05d5 <tt> \u05d9<\/tt> \u05d4\u05d5\u05d0<b> <i> <\/i> <\/b> \u05db\u05dc \u05d4\u05d4\u05d2\u05d3\u05e8\u05d4 \u05e9\u05dc \u05d4\u05db\u05d9\u05ea\u05d4.\u00a0 \u05d1\u05d4\u05d9\u05e7\u05e3 \u05d6\u05d4 \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 <tt> X <\/tt> \u05d5 <tt> \u05d9<\/tt> \u05de\u05e9\u05de\u05e9\u05d9\u05dd \u05db\u05d0\u05d9\u05dc\u05d5 \u05d4\u05d9\u05d5 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd (\u05e2\u05dd \u05db\u05de\u05d4 \u05d4\u05d2\u05d1\u05dc\u05d5\u05ea). \u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05e9\u05dc\u05de\u05e2\u05dc\u05d4, \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05de\u05e9\u05de\u05e9\u05d9\u05dd \u05db\u05e1\u05d5\u05d2 \u05d4\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d5\u05d4\u05d7\u05d6\u05e8\u05d4 \u05e9\u05dc \u05e9\u05d9\u05d8\u05d5\u05ea \u05de\u05d5\u05e4\u05e2 \u05d5\u05e1\u05d5\u05d2\u05d9 \u05e9\u05d3\u05d5\u05ea \u05de\u05d5\u05e4\u05e2.<br \/>\n\u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05db\u05e8\u05d9\u05d6 \u05e2\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05e1\u05d5\u05d2 \u05e2\u05dd \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea. \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e0\u05d5\u05ea\u05e0\u05d9\u05dd \u05d2\u05d9\u05e9\u05d4 \u05dc\u05e9\u05d9\u05d8\u05d5\u05ea \u05de\u05d4\u05e1\u05d5\u05d2 \u05d4\u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2 \u05e9\u05d4\u05e4\u05e8\u05de\u05d8\u05e8 \u05de\u05e1\u05d5\u05d2 \u05de\u05d9\u05d9\u05e6\u05d2. \u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05e9\u05dc\u05e0\u05d5, \u05d0\u05e0\u05d7\u05e0\u05d5 \u05dc\u05d0 \u05de\u05e4\u05e2\u05d9\u05dc\u05d9\u05dd \u05e9\u05d5\u05dd \u05e9\u05d9\u05d8\u05d5\u05ea \u05de\u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05d4\u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2\u05d9\u05dd <tt> X <\/tt> \u05d5 <tt> \u05d9<\/tt> . \u05de\u05e1\u05d9\u05d1\u05d4 \u05d6\u05d5, \u05e9\u05e0\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05d0\u05d9\u05e0\u05dd \u05de\u05d5\u05d2\u05d1\u05dc\u05d9\u05dd.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05de\u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e7\u05d5\u05e0\u05e7\u05e8\u05d8\u05d9):<\/p>\n<blockquote><p><tt> public void printPair(<b> <span style=\"color:#000099;\"> Pair&lt;String,Long&gt;<\/span> <\/b> \u05d6\u05d5\u05d2) {<\/tt><br \/>\n<tt> \u00a0 System.out.println(\"(\"+pair.getFirst()+\",\"+pair.getSecond()+\")\");<\/tt><br \/>\n<tt> }<\/tt><tt> <b> <span style=\"color:#000099;\"> Pair&lt;String,Long&gt;<\/span> <\/b> limit = \u05d7\u05d3\u05e9 <b> <span style=\"color:#000099;\"> Pair&lt;String,Long&gt;<\/span> <\/b> (\"\u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd\",1024L);<\/tt><br \/>\n<tt> printPair(limit);<\/tt><\/p><\/blockquote>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05e9\u05dc \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd):<\/p>\n<blockquote>\n<blockquote><p><tt> public void printPair(<b> <span style=\"color:#000099;\"> Pair&lt;?,?&gt;<\/span> <\/b> \u05d6\u05d5\u05d2) {<\/tt><br \/>\n<tt> \u00a0 System.out.println(\"(\"+pair.getFirst()+\",\"+pair.getSecond()+\")\");<\/tt><br \/>\n<tt> }<\/tt><tt> <b> <span style=\"color:#000099;\"> Pair&lt;?,?&gt;<\/span> <\/b> limit = \u05d7\u05d3\u05e9 <b> <span style=\"color:#000099;\"> Pair&lt;String,Long&gt;<\/span> <\/b> (\"\u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd\",1024L);<\/tt><br \/>\n<tt> printPair(limit);<\/tt><\/p><\/blockquote>\n<\/blockquote>\n<p>\u05db\u05dc \u05d4\u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9 \u05d7\u05d5\u05dc\u05e7\u05d9\u05dd \u05d0\u05ea \u05d0\u05d5\u05ea\u05d5 \u05d9\u05d9\u05e6\u05d5\u05d2 \u05e1\u05d5\u05d2 \u05d6\u05de\u05df \u05e8\u05d9\u05e6\u05d4, \u05db\u05dc\u05d5\u05de\u05e8 \u05d4\u05d9\u05d9\u05e6\u05d5\u05d2 \u05e9\u05dc \u05d4\u05e1\u05d5\u05d2 \u05d4\u05d2\u05d5\u05dc\u05de\u05d9. \u05dc\u05de\u05e9\u05dc, \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9 <tt> \u05e8\u05b0\u05e9\u05c1\u05b4\u05d9\u05de\u05b8\u05d4<\/tt> , \u05db\u05d2\u05d5\u05df <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;Date&gt;<\/tt> , <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/tt> , <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;Long&gt;<\/tt> , \u05d5\u05db\u05d5&#8217; \u05d9\u05e9 \u05e1\u05d5\u05d2\u05d9\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05e9\u05d5\u05e0\u05d9\u05dd \u05d1\u05d6\u05de\u05df \u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05dc\u05e6\u05d9\u05d4, \u05d0\u05d1\u05dc \u05d0\u05d5\u05ea\u05d5 \u05e1\u05d5\u05d2 \u05d3\u05d9\u05e0\u05de\u05d9 <tt> \u05e8\u05b0\u05e9\u05c1\u05b4\u05d9\u05de\u05b8\u05d4 <\/tt> \u05d1\u05d6\u05de\u05df \u05e8\u05d9\u05e6\u05d4.<\/p>\n<p>\u05e6\u05d5\u05d5\u05ea \u05d4\u05e9\u05d7\u05e7\u05e0\u05d9\u05dd \u05de\u05d5\u05e8\u05db\u05d1 \u05de\u05e9\u05e0\u05d9 \u05d7\u05dc\u05e7\u05d9\u05dd:<\/p>\n<ul>\n<li>\u05d1\u05d3\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e9\u05d1\u05d5\u05e6\u05e2\u05d4 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05de\u05d4\u05d3\u05e8 \u05d1\u05d6\u05de\u05df \u05d4\u05d4\u05d9\u05d3\u05d5\u05e8 \u05d5<\/li>\n<li>\u05d1\u05d3\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 \u05d3\u05d9\u05e0\u05de\u05d9\u05ea \u05e9\u05d1\u05d5\u05e6\u05e2\u05d4 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05de\u05db\u05d5\u05e0\u05d4 \u05d4\u05d5\u05d5\u05d9\u05e8\u05d8\u05d5\u05d0\u05dc\u05d9\u05ea \u05d1\u05d6\u05de\u05df \u05e8\u05d9\u05e6\u05d4.<\/li>\n<\/ul>\n<p>\u05d4\u05d7\u05dc\u05e7 \u05d4\u05e1\u05d8\u05d8\u05d9 \u05de\u05de\u05d9\u05d9\u05df \u05dc\u05d9\u05d4\u05d5\u05e7\u05d9\u05dd \u05e9\u05d8\u05d5\u05ea\u05d9\u05d9\u05dd, \u05e9\u05dc\u05d0 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05e6\u05dc\u05d9\u05d7, \u05db\u05de\u05d5 \u05d4\u05e7\u05d0\u05e1\u05d8 \u05de <tt> \u05d7\u05d5\u05bc\u05d8<\/tt> \u05d6\u05b6\u05d4 <tt> \u05ea\u05b7\u05d0\u05b2\u05e8\u05b4\u05d9\u05da<\/tt> \u05d0\u05d5 \u05de <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/tt> \u05d6\u05b6\u05d4 <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;Date&gt;<\/tt> .<\/p>\n<p>\u05d4\u05d7\u05dc\u05e7 \u05d4\u05d3\u05d9\u05e0\u05de\u05d9 \u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05de\u05d9\u05d3\u05e2 \u05e2\u05dc \u05e1\u05d5\u05d2 \u05d6\u05de\u05df \u05d4\u05e8\u05d9\u05e6\u05d4 \u05d5\u05de\u05d1\u05e6\u05e2 \u05d1\u05d3\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 \u05d1\u05d6\u05de\u05df \u05e8\u05d9\u05e6\u05d4.\u00a0 \u05d6\u05d4 \u05de\u05e2\u05dc\u05d4 \u05d0 <tt> ClassCastException<\/tt> \u05d0\u05dd \u05d4\u05e1\u05d5\u05d2 \u05d4\u05d3\u05d9\u05e0\u05de\u05d9 \u05e9\u05dc \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05d0\u05d9\u05e0\u05d5 \u05e1\u05d5\u05d2 \u05d4\u05de\u05d8\u05e8\u05d4 (\u05d0\u05d5 \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc \u05e1\u05d5\u05d2 \u05d4\u05de\u05d8\u05e8\u05d4) \u05e9\u05dc \u05d4\u05e9\u05d7\u05e7\u05e0\u05d9\u05dd. \u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea \u05dc\u05e7\u05d0\u05e1\u05d8\u05d9\u05dd \u05e2\u05dd \u05d7\u05dc\u05e7 \u05d3\u05d9\u05e0\u05de\u05d9 \u05d4\u05dd \u05d4\u05e7\u05d0\u05e1\u05d8 \u05de <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d6\u05b6\u05d4 <tt> \u05d7\u05d5\u05bc\u05d8<\/tt> \u05d0\u05d5 \u05de <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d6\u05b6\u05d4 <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/tt> .\u00a0 \u05d0\u05dc\u05d5 \u05d4\u05dd \u05de\u05d4 \u05e9\u05e0\u05e7\u05e8\u05d0 \u05de\u05d5\u05e9\u05e4\u05dc\u05d9\u05dd, \u05de\u05e1\u05d5\u05e4\u05e8-\u05d8\u05d9\u05e4\u05d5\u05e1 \u05dc\u05de\u05d8\u05d4 \u05d5\u05e2\u05d3 \u05ea\u05ea-\u05d8\u05d9\u05e4\u05d5\u05e1.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea \u05dc\u05e1\u05d5\u05d2\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8 \u05d1\u05d8\u05d5\u05df \u05d4\u05df <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/tt> , <tt> Map&lt;String,Date&gt;<\/tt> , \u05d0\u05d1\u05dc \u05dc\u05d0 <tt> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/tt> \u05d0\u05d5\u05b9 <tt> Map&lt;String,?&gt;<\/tt> .<\/p>\n<p>\u05dc\u05e2\u05d9\u05ea\u05d9\u05dd \u05e6\u05e4\u05d5\u05d9 \u05db\u05d9 \u05d0 <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;Object&gt;<\/tt> \u05d9\u05d4\u05d9\u05d4 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05e2\u05dc \u05e9\u05dc \u05d0 <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/tt> , \u05db\u05d9 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05e2\u05dc \u05e9\u05dc <tt> \u05d7\u05d5\u05bc\u05d8<\/tt> .\u00a0 \u05e6\u05d9\u05e4\u05d9\u05d9\u05d4 \u05d6\u05d5 \u05e0\u05d5\u05d1\u05e2\u05ea \u05de\u05d4\u05e2\u05d5\u05d1\u05d3\u05d4 \u05e9\u05e1\u05d5\u05d2 \u05db\u05d6\u05d4 \u05e9\u05dc \u05e7\u05e9\u05e8 \u05e7\u05d9\u05d9\u05dd \u05e2\u05d1\u05d5\u05e8 \u05de\u05e2\u05e8\u05db\u05d9\u05dd:\u00a0 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3[]<\/tt> \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05e2\u05dc \u05e9\u05dc <tt> \u05d7\u05d5\u05bc\u05d8[]<\/tt> , \u05db\u05d9 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d4\u05d5\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05e2\u05dc \u05e9\u05dc <tt> \u05d7\u05d5\u05bc\u05d8<\/tt> . (\u05e1\u05d5\u05d2 \u05d6\u05d4 \u05e9\u05dc \u05de\u05e2\u05e8\u05db\u05ea \u05d9\u05d7\u05e1\u05d9\u05dd \u05d9\u05d3\u05d5\u05e2 \u05d1\u05e9\u05dd <i> \u05e9\u05d9\u05ea\u05d5\u05e4\u05d9\u05d5\u05ea<\/i> .) \u05d9\u05d7\u05e1\u05d9-\u05d4\u05e1\u05d5\u05e4\u05e8-\u05ea\u05ea-\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e9\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05e8\u05db\u05d9\u05d1\u05d9\u05dd \u05de\u05e9\u05ea\u05e8\u05e2\u05d9\u05dd \u05dc\u05e1\u05d5\u05d2\u05d9 \u05d4\u05de\u05e2\u05e8\u05da \u05d4\u05de\u05ea\u05d0\u05d9\u05de\u05d9\u05dd. \u05dc\u05d0 \u05e7\u05d9\u05d9\u05dd \u05e7\u05e9\u05e8 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05db\u05d6\u05d4 \u05e2\u05d1\u05d5\u05e8 \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e9\u05dc \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05d2\u05e0\u05e8\u05d9\u05d9\u05dd. (\u05e1\u05d5\u05d2\u05d9\u05dd \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d4\u05dd <i> \u05dc\u05b9\u05d0<\/i> \u05e7\u05d5\u05d5\u05e8\u05d9\u05d0\u05e0\u05d8.)<\/p>\n<p>\u05dc\u05d4\u05d9\u05e2\u05d3\u05e8 \u05e7\u05e9\u05e8-\u05e2\u05dc-\u05ea\u05ea-\u05d8\u05d9\u05e4\u05d5\u05e1 \u05d1\u05d9\u05df \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05de\u05d0\u05d5\u05ea\u05d5 \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9 \u05d9\u05e9 \u05d4\u05e9\u05dc\u05db\u05d5\u05ea \u05e9\u05d5\u05e0\u05d5\u05ea.\u00a0 \u05d4\u05e0\u05d4 \u05d3\u05d5\u05d2\u05de\u05d4.<\/p>\n<p>\u05d3\u05d5\u05bc\u05d2\u05de\u05b8\u05d4:<\/p>\n<p><tt> void printAll(ArrayList&lt;Object&gt; c) {<\/tt><br \/>\n<tt> \u00a0 \u05e2\u05d1\u05d5\u05e8 (Object o : c)\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 System.out.println(o);<\/tt><br \/>\n<tt> }<\/tt><tt> ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();<\/tt><br \/>\n<tt> ... \u05dc\u05de\u05dc\u05d0 \u05e8\u05e9\u05d9\u05de\u05d4 ...<\/tt><br \/>\n<tt> printAll(\u05e8\u05e9\u05d9\u05de\u05d4);\u00a0\u00a0 \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/tt><\/p>\n<p>\u05d0 <tt> ArrayList&lt;String&gt;<\/tt> \u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e2\u05d1\u05d9\u05e8 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05dc\u05de\u05ea\u05d5\u05d3\u05d4 \u05d4\u05de\u05d1\u05e7\u05e9\u05ea \u05d0 <tt> ArrayList&lt;Object&gt;<\/tt> \u05db\u05d9 \u05e9\u05e0\u05d9 \u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05d4\u05dd \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05de\u05d0\u05d5\u05ea\u05d5 \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9, \u05d0\u05d1\u05dc \u05e2\u05d1\u05d5\u05e8 <i> \u05e9\u05c1\u05d5\u05b9\u05e0\u05b6\u05d4<\/i> \u05e1\u05d5\u05d2 \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd, \u05d5\u05de\u05e1\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05d4\u05dd \u05d0\u05d9\u05e0\u05dd \u05ea\u05d5\u05d0\u05de\u05d9\u05dd \u05d6\u05d4 \u05dc\u05d6\u05d4.<\/p>\n<p>\u05e1\u05d5\u05d2\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d1\u05d8\u05d5\u05df \u05d4\u05dd \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e7\u05d5\u05e0\u05e7\u05e8\u05d8\u05d9\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9.\u00a0 \u05d4\u05dd \u05db\u05de\u05e2\u05d8 \u05db\u05de\u05d5 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd; \u05d9\u05e9 \u05e8\u05e7 \u05db\u05de\u05d4 \u05d4\u05d2\u05d1\u05dc\u05d5\u05ea.\u00a0 \u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d4\u05dd \u05dc\u05de\u05d8\u05e8\u05d5\u05ea \u05d4\u05d1\u05d0\u05d5\u05ea:<\/p>\n<ul>\n<li>\u05dc\u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05e2\u05e8\u05db\u05d9\u05dd<\/li>\n<li>\u05d1\u05d8\u05d9\u05e4\u05d5\u05dc \u05d7\u05e8\u05d9\u05d2<\/li>\n<li>\u05d1\u05db\u05d9\u05ea\u05d4 \u05de\u05d9\u05dc\u05d5\u05dc\u05d9\u05ea<\/li>\n<li>\u05d1- <tt> \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc<\/tt> \u05d4\u05b7\u05d1\u05bc\u05b8\u05e2\u05b8\u05d4<\/li>\n<\/ul>\n<p>\u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05d4\u05de\u05db\u05d9\u05dc\u05d9\u05dd \u05d0\u05dc\u05de\u05e0\u05d8\u05d9\u05dd \u05e9\u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc\u05d4\u05dd \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05d1\u05d8\u05d5\u05df \u05d0\u05d9\u05e0\u05dd \u05d7\u05d5\u05e7\u05d9\u05d9\u05dd.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e1\u05d5\u05d2 \u05de\u05e2\u05e8\u05da \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9):<\/p>\n<p><tt> static void test() {<\/tt><br \/>\n<tt> \u00a0 <b> <span style=\"color:#660000;\"> Pair&lt;Integer,Integer&gt;[]<\/span> <\/b> intPairArr = \u05d7\u05d3\u05e9 <b> <span style=\"color:#660000;\"> Pair&lt;Integer,Integer&gt;[10]<\/span> <\/b> ; <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 addElements(intPairArr);\u00a0<\/tt><br \/>\n<tt> \u00a0 Pair&lt;Integer,Integer&gt; pair = intPairArr[1];<\/tt><br \/>\n<tt> \u00a0 \u05de\u05e1\u05e4\u05e8 \u05e9\u05dc\u05dd i = pair.getFirst();<\/tt><br \/>\n<tt> \u00a0 pair.setSecond(i);<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> static void addElements(<b> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3[]<\/b> objArr) {<\/tt><br \/>\n<tt> \u00a0 objArr[0] = New Pair&lt;Integer,Integer&gt;(0,0);<\/tt><br \/>\n<tt> \u00a0 objArr[1] = New Pair&lt;String,String&gt;(\"\",\"\");\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ \u05d0\u05de\u05d5\u05e8 \u05dc\u05d4\u05d9\u05db\u05e9\u05dc \u05e2\u05dd ArrayStoreException<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<p>\u05d4\u05de\u05d4\u05d3\u05e8 \u05d0\u05d5\u05e1\u05e8 \u05e2\u05dc \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05e9\u05e1\u05d5\u05d2 \u05d4\u05e8\u05db\u05d9\u05d1 \u05e9\u05dc\u05d4\u05dd \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e7\u05d5\u05e0\u05e7\u05e8\u05d8\u05d9, \u05db\u05de\u05d5 <tt> Pair&lt;Integer,Integer&gt;<\/tt> \u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05e9\u05dc\u05e0\u05d5.\u00a0 \u05d3\u05e0\u05d5 \u05d1\u05e2\u05e8\u05da \u05d4\u05e7\u05d5\u05d3\u05dd \u05de\u05d3\u05d5\u05e2 \u05d6\u05d4 \u05e1\u05d1\u05d9\u05e8 \u05e9\u05d4\u05de\u05d4\u05d3\u05e8 \u05de\u05ea\u05d0\u05d9\u05dd \u05dc\u05d0<span style=\"color:#000000;\"> <tt> Pair&lt;Integer,Integer&gt;[]<\/tt> <\/span> \u05db\u05d1\u05dc\u05ea\u05d9 \u05d7\u05d5\u05e7\u05d9.\u00a0 \u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05e2\u05d9\u05e7\u05e8\u05d9\u05ea \u05d4\u05d9\u05d0 \u05e9\u05d4\u05de\u05d4\u05d3\u05e8 \u05d5\u05de\u05e2\u05e8\u05db\u05ea \u05d6\u05de\u05df \u05d4\u05e8\u05d9\u05e6\u05d4 \u05d7\u05d9\u05d9\u05d1\u05d9\u05dd \u05dc\u05d4\u05d1\u05d8\u05d9\u05d7 \u05e9\u05de\u05e2\u05e8\u05da \u05d4\u05d5\u05d0 \u05d0 <i> \u05d4\u05d5\u05b9\u05de\u05d5\u05b9\u05d2\u05b5\u05e0\u05b4\u05d9<\/i> \u05e8\u05e6\u05e3 \u05e9\u05dc \u05d0\u05dc\u05de\u05e0\u05d8\u05d9\u05dd \u05de\u05d0\u05d5\u05ea\u05d5 \u05e1\u05d5\u05d2.\u00a0 \u05d0\u05d7\u05ea \u05de\u05d1\u05d3\u05d9\u05e7\u05d5\u05ea \u05d4\u05e1\u05d5\u05d2, \u05db\u05dc\u05d5\u05de\u05e8 \u05d1\u05d3\u05d9\u05e7\u05ea \u05d4\u05de\u05e2\u05e8\u05da-\u05de\u05d7\u05e1\u05df \u05e9\u05d1\u05d5\u05e6\u05e2\u05d4 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05de\u05db\u05d5\u05e0\u05d4 \u05d4\u05d5\u05d5\u05d9\u05e8\u05d8\u05d5\u05d0\u05dc\u05d9\u05ea \u05d1\u05d6\u05de\u05df \u05d4\u05e8\u05d9\u05e6\u05d4, \u05dc\u05d0 \u05de\u05e6\u05dc\u05d9\u05d7\u05d4 \u05dc\u05d6\u05d4\u05d5\u05ea \u05d0\u05ea \u05d4\u05d4\u05d7\u05d3\u05e8\u05d4 \u05d4\u05e4\u05d5\u05d2\u05e2\u05e0\u05d9\u05ea \u05e9\u05dc \u05d0\u05dc\u05de\u05e0\u05d8 \u05d6\u05e8. \u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05d4\u05d4\u05d5\u05e1\u05e4\u05d4 \u05d4\u05e9\u05e0\u05d9\u05d9\u05d4 \u05d1- <tt> addElements<\/tt> \u05d4\u05e9\u05d9\u05d8\u05d4 \u05d0\u05de\u05d5\u05e8\u05d4 \u05dc\u05d4\u05d9\u05db\u05e9\u05dc, \u05db\u05d9 \u05d4\u05dd \u05d4\u05d5\u05e1\u05d9\u05e4\u05d5 \u05d6\u05d5\u05d2 \u05de\u05d7\u05e8\u05d5\u05d6\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05e2\u05e8\u05db\u05d9\u05dd \u05d0\u05d9\u05e0\u05d8\u05d2\u05e8\u05dc\u05d9\u05d9\u05dd, \u05d0\u05d1\u05dc \u05d4\u05d9\u05d0 \u05dc\u05d0 \u05e0\u05db\u05e9\u05dc\u05ea \u05db\u05e6\u05e4\u05d5\u05d9. \u05d4\u05e1\u05d9\u05d1\u05d5\u05ea \u05e0\u05d3\u05d5\u05e0\u05d5 \u05d1\u05e2\u05e8\u05da \u05d4\u05e7\u05d5\u05d3\u05dd.<\/p>\n<p>\u05d0\u05dd \u05d0\u05d9\u05e0\u05e0\u05d5 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05d4\u05de\u05db\u05d9\u05dc\u05d9\u05dd \u05d0\u05dc\u05de\u05e0\u05d8\u05d9\u05dd \u05e9\u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc\u05d4\u05dd \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e7\u05d5\u05e0\u05e7\u05e8\u05d8\u05d9, \u05d1\u05de\u05d4 \u05e0\u05e9\u05ea\u05de\u05e9 \u05db\u05e4\u05ea\u05e8\u05d5\u05df \u05e2\u05d5\u05e7\u05e3?<\/p>\n<p>\u05d4\u05d1\u05d4 \u05e0\u05d1\u05d7\u05df 3 \u05d3\u05e8\u05db\u05d9\u05dd \u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4:<\/p>\n<ul>\n<li>\u05de\u05e2\u05e8\u05da \u05e1\u05d5\u05d2\u05d9 \u05d2\u05dc\u05dd<\/li>\n<li>\u05de\u05e2\u05e8\u05da \u05e9\u05dc \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05dc\u05dc\u05d0 \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd<\/li>\n<li>\u05d0\u05d5\u05e1\u05e3 \u05d1\u05de\u05e7\u05d5\u05dd \u05de\u05e2\u05e8\u05da<\/li>\n<\/ul>\n<p>\u05d1\u05e2\u05d5\u05d3 \u05e9\u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05e9\u05dc \u05e1\u05d5\u05d2\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d1\u05d8\u05d5\u05df \u05d0\u05d9\u05e0\u05dd \u05d7\u05d5\u05e7\u05d9\u05d9\u05dd, \u05d0\u05d5\u05e1\u05e4\u05d9\u05dd \u05e9\u05dc \u05e1\u05d5\u05d2\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d1\u05d8\u05d5\u05df \u05de\u05d5\u05ea\u05e8\u05d9\u05dd.<\/p>\n<p>\u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05d4\u05d5\u05d0 \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9 \u05e9\u05d1\u05d5 \u05dc\u05e4\u05d7\u05d5\u05ea \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05e1\u05d5\u05d2 \u05d0\u05d7\u05d3 \u05d4\u05d5\u05d0 \u05ea\u05d5 \u05db\u05dc\u05dc\u05d9.\u00a0 \u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea \u05dc\u05e1\u05d5\u05d2\u05d9\u05dd \u05d1\u05e2\u05dc\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05d4\u05dd <tt> Collection&lt;?&gt;<\/tt> , <tt> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/tt> , <tt> Comparator&lt;? \u05e1\u05d5\u05e4\u05e8 String&gt;<\/tt> \u05d5 <tt> Pair&lt;String,?&gt;<\/tt> . \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05de\u05e6\u05d9\u05d9\u05df \u05de\u05e9\u05e4\u05d7\u05d4 \u05e9\u05dc \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05d4\u05db\u05d5\u05dc\u05dc\u05ea \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e7\u05d5\u05e0\u05e7\u05e8\u05d8\u05d9\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9.\u00a0 \u05e1\u05d5\u05d2 \u05d4\u05ea\u05d5 \u05d4\u05db\u05dc\u05dc\u05d9 \u05e9\u05d1\u05d5 \u05e0\u05e2\u05e9\u05d4 \u05e9\u05d9\u05de\u05d5\u05e9 \u05e7\u05d5\u05d1\u05e2 \u05d0\u05d9\u05dc\u05d5 \u05e1\u05d5\u05d2\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d1\u05d8\u05d5\u05df \u05e9\u05d9\u05d9\u05db\u05d9\u05dd \u05dc\u05de\u05e9\u05e4\u05d7\u05d4.\u00a0 \u05dc\u05d3\u05d5\u05d2\u05de\u05d4, \u05d4\u05e1\u05d5\u05d2 \u05d1\u05e2\u05dc \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05d5\u05d9\u05dd \u05d4\u05db\u05dc\u05dc\u05d9\u05d9\u05dd <tt> Collection&lt;?&gt;<\/tt> \u05de\u05e6\u05d9\u05d9\u05df \u05d0\u05ea \u05d4\u05de\u05e9\u05e4\u05d7\u05d4 \u05e9\u05dc \u05db\u05dc \u05d4\u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e9\u05dc \u05d4 <tt> \u05d2\u05b0\u05d1\u05b4\u05d9\u05b8\u05d4<\/tt> \u05de\u05de\u05e9\u05e7 \u05dc\u05dc\u05d0 \u05e7\u05e9\u05e8 \u05dc\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d4\u05e1\u05d5\u05d2.\u00a0 \u05d4\u05e1\u05d5\u05d2 \u05d1\u05e2\u05dc \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05d5\u05d9\u05dd \u05d4\u05db\u05dc\u05dc\u05d9\u05d9\u05dd <tt> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/tt> \u05de\u05e6\u05d9\u05d9\u05df \u05d0\u05ea \u05d4\u05de\u05e9\u05e4\u05d7\u05d4 \u05e9\u05dc \u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05e8\u05e9\u05d9\u05de\u05d5\u05ea \u05e9\u05d1\u05d4\u05dd \u05e1\u05d5\u05d2 \u05d4\u05d0\u05dc\u05de\u05e0\u05d8 \u05d4\u05d5\u05d0 \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc\u00a0 <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> .\u00a0 \u05d4\u05e1\u05d5\u05d2 \u05d1\u05e2\u05dc \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05d5\u05d9\u05dd \u05d4\u05db\u05dc\u05dc\u05d9\u05d9\u05dd <tt> Comparator&lt;? \u05e1\u05d5\u05e4\u05e8 String&gt;<\/tt> \u05d4\u05d9\u05d0 \u05d4\u05de\u05e9\u05e4\u05d7\u05d4 \u05e9\u05dc \u05db\u05dc \u05d4\u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e9\u05dc \u05d4 <tt> \u05de\u05e9\u05d5\u05d5\u05d4<\/tt> \u05de\u05de\u05e9\u05e7 \u05e2\u05d1\u05d5\u05e8 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05e9\u05d4\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05e2\u05dc \u05e9\u05dc <tt> \u05d7\u05d5\u05bc\u05d8.<\/tt><\/p>\n<p><strong><em>\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05d0\u05d9\u05e0\u05d5 \u05d8\u05d9\u05e4 \u05d1\u05de\u05d5\u05d1\u05df \u05d4\u05e8\u05d2\u05d9\u05dc (\u05e9\u05d5\u05e0\u05d4 \u05de\u05de\u05d7\u05dc\u05e7\u05d4\/\u05de\u05de\u05e9\u05e7 \u05dc\u05dc\u05d0 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d0\u05d5 \u05e1\u05d5\u05d2 \u05d2\u05d5\u05dc\u05de\u05d9).<\/em> <\/strong><\/p>\n<p>\u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e1\u05d5\u05d2\u05d9\u05dd \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05dc\u05d4\u05e7\u05dc\u05d3\u05d4 (\u05db\u05de\u05d5 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05d5\u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05dc\u05dc\u05d0 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd):<\/p>\n<ul>\n<li>\u05db\u05e1\u05d5\u05d2\u05d9 \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d5\u05d4\u05d7\u05d6\u05e8\u05d4 \u05e9\u05dc \u05e9\u05d9\u05d8\u05d5\u05ea<\/li>\n<li>\u05db\u05e1\u05d5\u05d2 \u05e9\u05dc \u05e9\u05d3\u05d4 \u05d0\u05d5 \u05de\u05e9\u05ea\u05e0\u05d4 \u05d9\u05d9\u05d7\u05d5\u05e1 \u05de\u05e7\u05d5\u05de\u05d9<\/li>\n<li>\u05db\u05e1\u05d5\u05d2 \u05e8\u05db\u05d9\u05d1 \u05e9\u05dc \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05de\u05e1\u05d5\u05d2 \u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05de\u05e1\u05d5\u05d2\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05dd \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd<\/li>\n<li>\u05db\u05e1\u05d5\u05d2 \u05de\u05d8\u05e8\u05d4 \u05d1\u05d2\u05d1\u05e1<\/li>\n<\/ul>\n<p>\u05dc\u05d0 \u05e8\u05e7 \u05e1\u05d5\u05d2\u05d9\u05dd \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05d2\u05e0\u05e8\u05d9\u05d9\u05dd, \u05d0\u05dc\u05d0 \u05d2\u05dd \u05e9\u05d9\u05d8\u05d5\u05ea \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05d4\u05d9\u05d5\u05ea \u05db\u05dc\u05dc\u05d9\u05d5\u05ea. \u05dc\u05e9\u05d9\u05d8\u05d5\u05ea \u05e1\u05d8\u05d8\u05d9\u05d5\u05ea \u05d5\u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d5\u05ea \u05db\u05de\u05d5 \u05d2\u05dd \u05d1\u05e0\u05d0\u05d9\u05dd \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2. \u05d4\u05ea\u05d7\u05d1\u05d9\u05e8 \u05dc\u05d4\u05db\u05e8\u05d6\u05d4 \u05e2\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05d4\u05e4\u05d5\u05e8\u05de\u05dc\u05d9 \u05d3\u05d5\u05de\u05d4 \u05dc\u05ea\u05d7\u05d1\u05d9\u05e8 \u05e9\u05dc \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05d2\u05e0\u05e8\u05d9\u05d9\u05dd. \u05e7\u05d8\u05e2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05de\u05d5\u05e4\u05e8\u05d3 \u05d1\u05e1\u05d5\u05d2\u05e8\u05d9\u05d9\u05dd \u05e9\u05dc \u05d6\u05d5\u05d5\u05d9\u05ea \u05d5\u05de\u05d5\u05e4\u05d9\u05e2 \u05dc\u05e4\u05e0\u05d9 \u05e1\u05d5\u05d2 \u05d4\u05d4\u05d7\u05d6\u05e8\u05d4 \u05e9\u05dc \u05d4\u05e9\u05d9\u05d8\u05d4. \u05d4\u05ea\u05d7\u05d1\u05d9\u05e8 \u05d5\u05d4\u05de\u05e9\u05de\u05e2\u05d5\u05ea \u05e9\u05dc\u05d5 \u05d6\u05d4\u05d9\u05dd \u05dc\u05e8\u05e9\u05d9\u05de\u05ea \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9.<\/p>\n<p>\u05d4\u05e0\u05d4 \u05d4\u05d3\u05d5\u05d2\u05de\u05d4 \u05e9\u05dc \u05d2\u05e0\u05e8\u05d9 <tt> \u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd<\/tt> \u05e9\u05d9\u05d8\u05d4 \u05d4\u05de\u05d7\u05e9\u05d1\u05ea \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05d4\u05d2\u05d3\u05d5\u05dc \u05d1\u05d9\u05d5\u05ea\u05e8 \u05d1\u05d0\u05d5\u05e1\u05e3 \u05e9\u05dc \u05d0\u05dc\u05de\u05e0\u05d8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2 <tt> \u05d0<\/tt> .<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05d8\u05d4 \u05d2\u05e0\u05e8\u05d9\u05ea):<\/p>\n<blockquote><p><tt> \u05d0\u05d5\u05e1\u05e4\u05d9 \u05db\u05d9\u05ea\u05d4 {<\/tt><br \/>\n<tt> \u00a0 \u05e1\u05d8\u05d8\u05d9 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <b> <span style=\"color:#000099;\"> &lt;A \u05de\u05e8\u05d7\u05d9\u05d1 Comparable&lt;A&gt;&gt; A<\/span> <\/b> max(Collection&lt;<b> <span style=\"color:#000099;\"> \u05d0<\/span> <\/b> &gt; xs) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 Iterator&lt;<b> <span style=\"color:#000099;\"> \u05d0<\/span> <\/b> &gt; xi = xs.iterator();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u05d0<\/span> <\/b> w = xi.next();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 while (xi.hasNext()) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u05d0<\/span> <\/b> x = xi.next();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 if (w.compareTo(x) &lt; 0) w = x;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05d7\u05d6\u05e8\u05d4 w;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }\u00a0<\/tt><\/p><\/blockquote>\n<p>\u05d4 <tt> \u05de\u05e7\u05e1\u05d9\u05de\u05d5\u05dd<\/tt> \u05dc\u05e9\u05d9\u05d8\u05d4 \u05d9\u05e9 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d0\u05d7\u05d3, \u05d1\u05e9\u05dd<tt> \u05d0<\/tt> .\u00a0 \u05d6\u05d4\u05d5 \u05de\u05d7\u05d6\u05d9\u05e7 \u05de\u05e7\u05d5\u05dd \u05dc\u05e1\u05d5\u05d2 \u05d4\u05d0\u05dc\u05de\u05e0\u05d8 \u05e9\u05dc \u05d4\u05d0\u05d5\u05e1\u05e3 \u05e2\u05dc\u05d9\u05d5 \u05e2\u05d5\u05d1\u05d3\u05ea \u05d4\u05e9\u05d9\u05d8\u05d4. \u05dc\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d9\u05e9 \u05d2\u05d1\u05d5\u05dc; \u05d6\u05d4 \u05d7\u05d9\u05d9\u05d1 \u05dc\u05d4\u05d9\u05d5\u05ea \u05e1\u05d5\u05d2 \u05e9\u05d4\u05d5\u05d0 \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 &lt;A&gt;<\/tt><\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05de\u05d0\u05d5\u05ea\u05d5 \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9, \u05d4\u05e4\u05e2\u05dd <i> \u05e2\u05b4\u05dd<\/i> \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea):<\/p>\n<blockquote><p><tt> \u05de\u05de\u05e9\u05e7 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 Comparable&lt;T&gt; {<\/tt><br \/>\n<tt> \u00a0 public int compareTo(T arg);<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u05db\u05d9\u05ea\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea TreeMap&lt;Key <b> <span style=\"color:#000066;\"> \u05de\u05e8\u05d7\u05d9\u05d1 Comparable&lt;Key&gt;<\/span> <\/b> ,Data&gt;{<\/tt><br \/>\n<tt> \u00a0 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e4\u05e8\u05d8\u05d9\u05ea Entry&lt;K,V&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05de\u05e4\u05ea\u05d7 K;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05e2\u05e8\u05da V;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;K,V&gt; left = null;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;K,V&gt; right = null;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;K,V&gt; \u05d0\u05d1;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 Entry transient private&lt;Key,Data&gt; root = null;<\/tt><br \/>\n<tt> \u00a0 ...<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 \u05db\u05e0\u05d9\u05e1\u05d4&lt;Key,Data&gt; getEntry(\u05de\u05e4\u05ea\u05d7 \u05de\u05e4\u05ea\u05d7) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;Key,Data&gt; p = root;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05de\u05e4\u05ea\u05d7 k = \u05de\u05e4\u05ea\u05d7;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 while (p != null) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 int cmp = k.<b> <span style=\"color:#990000;\"> compareTo(p.key)<\/span> <\/b> ;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if (cmp == 0)<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 p;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d0\u05d7\u05e8\u05ea \u05d0\u05dd (cmp &lt; 0)<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 p = p.left;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d0\u05b7\u05d7\u05b5\u05e8\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 p = p.right;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 null;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 public Boolean containsKey(Key key) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 return getEntry(key) != null;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05dc\u05de\u05e2\u05dc\u05d4, \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 <tt> \u05de\u05b7\u05e4\u05b0\u05ea\u05b5\u05d7\u05b7<\/tt> \u05d9\u05e9 \u05d0\u05ea \u05d4\u05db\u05d1\u05d5\u05dc <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 &lt;Key&gt;<\/tt> .\u00a0 \u05dc\u05de\u05e4\u05e8\u05d8 \u05e9\u05dc \u05db\u05d1\u05d5\u05dc \u05d9\u05e9 \u05e9\u05ea\u05d9 \u05d4\u05e9\u05e4\u05e2\u05d5\u05ea:<\/p>\n<ul>\n<li><i> \u05d4\u05d9\u05d0 \u05e0\u05d5\u05ea\u05e0\u05ea \u05d2\u05d9\u05e9\u05d4 \u05dc\u05e9\u05d9\u05d8\u05d5\u05ea \u05e9\u05d4\u05d2\u05d1\u05d5\u05dc \u05de\u05e6\u05d9\u05d9\u05df<\/i> .\u00a0 \u05d1\u05d3\u05d5\u05d2\u05de\u05d4, \u05d4\u05de\u05d7\u05d5\u05d1\u05e8 <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 &lt;Key&gt; <\/tt> \u05e0\u05d5\u05ea\u05df \u05d2\u05d9\u05e9\u05d4 \u05dc <tt> \u05d4\u05e9\u05d5\u05d5\u05d4 \u05dc<\/tt> \u05e9\u05d9\u05d8\u05d4 \u05e9\u05d0\u05e0\u05d5 \u05e8\u05d5\u05e6\u05d9\u05dd \u05dc\u05d4\u05e4\u05e2\u05d9\u05dc \u05d1\u05d9\u05d9\u05e9\u05d5\u05dd \u05e9\u05dc\u05e0\u05d5 <tt> \u05de\u05e4\u05ea \u05e2\u05e5<\/tt> \u05de\u05b7\u05d7\u05dc\u05b8\u05e7\u05b8\u05d4.<\/li>\n<\/ul>\n<ul>\n<li><i> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05e8\u05e7 \u05d1\u05e1\u05d5\u05d2\u05d9\u05dd &#8220;\u05d1\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea&#8221; \u05dc\u05d0\u05d9\u05e0\u05e1\u05d8\u05e6\u05d9\u05d4 \u05e9\u05dc \u05d4\u05e1\u05d5\u05d2 \u05d4\u05d2\u05e0\u05e8\u05d9.<\/i> \u00a0 \u05d1\u05d3\u05d5\u05d2\u05de\u05d4, \u05e1\u05d5\u05d2 \u05d1\u05e2\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> TreeMap&lt;Number,String&gt;<\/tt> \u05d9\u05d9\u05d3\u05d7\u05d4, \u05db\u05d9 \u05d4\u05e1\u05d5\u05d2 <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d0\u05d9\u05e0\u05d5 \u05ea\u05ea \u05e1\u05d5\u05d2 \u05e9\u05dc <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 &lt;Number&gt;<\/tt> .\u00a0 \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05db\u05de\u05d5 <tt> TreeMap&lt;String,String&gt;<\/tt> \u05d9\u05ea\u05e7\u05d1\u05dc, \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05e1\u05d5\u05d2 String \u05e0\u05de\u05e6\u05d0 \u05d1\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea, \u05db\u05dc\u05d5\u05de\u05e8 \u05d4\u05d5\u05d0 \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 &lt;String&gt;<\/tt> .<\/li>\n<\/ul>\n<p>\u05db\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d5\u05ea, \u05d4\u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05d5\u05e1\u05d5\u05d2\u05d9 \u05d4-enum \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05e9\u05de\u05e9 \u05db\u05de\u05d0\u05d2\u05d3 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05e1\u05d5\u05d2, \u05db\u05d5\u05dc\u05dc \u05e1\u05d5\u05d2\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05d5\u05e4\u05e0\u05d9\u05de\u05d9\u05d9\u05dd.\u00a0 \u05dc\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e4\u05e8\u05d9\u05de\u05d9\u05d8\u05d9\u05d1\u05d9\u05d9\u05dd \u05d5\u05dc\u05d0 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e9\u05dc \u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05de\u05e9\u05de\u05e9\u05d9\u05dd \u05db\u05d2\u05d1\u05d5\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d8\u05d9\u05e4\u05d5\u05e1.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea (\u05e9\u05dc \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2):<\/p>\n<blockquote><p><tt> \u05de\u05d7\u05dc\u05e7\u05d4 X0 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> int<\/span> <\/b> &gt; { ... }\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X1 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3[]<\/span> <\/b> &gt; { ... } <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X2 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X3 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05d7\u05d5\u05bc\u05d8<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X4 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e8\u05e6\u05d4<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X5 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05e9\u05e8\u05e9\u05d5\u05e8.\u05de\u05d3\u05d9\u05e0\u05d4<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X6 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05e8\u05b0\u05e9\u05c1\u05b4\u05d9\u05de\u05b8\u05d4<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X7 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X8 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X9 &lt;T \u05de\u05ea\u05d0\u05e8\u05db\u05ea <b> <span style=\"color:#000099;\"> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05ea &lt;? super Number&gt;<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 X10&lt;T \u05de\u05ea\u05e8\u05d7\u05d1\u05ea <b> <span style=\"color:#000099;\"> Map.Entry&lt;?,?&gt;<\/span> <\/b> &gt; { ... }<\/tt><\/p><\/blockquote>\n<p>\u05d3\u05d5\u05d2\u05de\u05ea \u05d4\u05e7\u05d5\u05d3 \u05de\u05e8\u05d0\u05d4 \u05e9\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e4\u05e8\u05d9\u05de\u05d9\u05d8\u05d9\u05d1\u05d9\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> int<\/tt> \u05d5\u05e1\u05d5\u05d2\u05d9 \u05de\u05e2\u05e8\u05db\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3[] <\/tt> \u05d0\u05d9\u05e0\u05dd \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05de\u05e1\u05d5\u05d2 \u05e1\u05d5\u05d2.<\/p>\n<p>\u05e1\u05d5\u05d2\u05d9 \u05db\u05d9\u05ea\u05d5\u05ea, \u05db\u05d2\u05d5\u05df <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d0\u05d5\u05b9 <tt> \u05d7\u05d5\u05bc\u05d8<\/tt> , \u05d5\u05e1\u05d5\u05d2\u05d9 \u05de\u05de\u05e9\u05e7\u05d9\u05dd, \u05db\u05d2\u05d5\u05df <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e8\u05e6\u05d4<\/tt> , \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05db\u05d2\u05d1\u05d5\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2.<\/p>\n<p>\u05e1\u05d5\u05d2\u05d9 Enum, \u05db\u05d2\u05d5\u05df <tt> \u05e9\u05e8\u05e9\u05d5\u05e8.\u05de\u05d3\u05d9\u05e0\u05d4<\/tt> \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05d2\u05dd \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05de\u05e1\u05d5\u05d2 \u05e1\u05d5\u05d2. <tt> \u05e9\u05e8\u05e9\u05d5\u05e8.\u05de\u05d3\u05d9\u05e0\u05d4<\/tt> \u05d4\u05d5\u05d0 \u05d3\u05d5\u05d2\u05de\u05d4 \u05dc\u05d8\u05d9\u05e4\u05d5\u05e1 \u05de\u05e7\u05d5\u05e0\u05df \u05d4\u05de\u05e9\u05de\u05e9 \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05de\u05e1\u05d5\u05d2 \u05e1\u05d5\u05d2.\u00a0 \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05d2\u05dd \u05e1\u05d5\u05d2\u05d9\u05dd \u05e4\u05e0\u05d9\u05de\u05d9\u05d9\u05dd \u05e9\u05d0\u05d9\u05e0\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd.<\/p>\n<p>\u05e1\u05d5\u05d2\u05d9\u05dd \u05d2\u05d5\u05dc\u05de\u05d9\u05d9\u05dd \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05db\u05e8\u05d1\u05d5\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2; <tt> <span style=\"color:#000000;\"> \u05e8\u05b0\u05e9\u05c1\u05b4\u05d9\u05de\u05b8\u05d4<\/span> <\/tt> \u05de\u05d4\u05d5\u05d5\u05d4 \u05d3\u05d5\u05d2\u05de\u05d4.<\/p>\n<p>\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05db\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05e1\u05d5\u05d2, \u05db\u05d5\u05dc\u05dc \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e7\u05d5\u05e0\u05e7\u05e8\u05d8\u05d9\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> \u05e8\u05e9\u05d9\u05de\u05d4&lt;String&gt;<\/tt> , \u05e1\u05d5\u05d2\u05d9\u05dd \u05d1\u05e2\u05dc\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05de\u05d5\u05d2\u05d1\u05dc\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/tt> \u05d5 <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05ea &lt;? \u05e1\u05d5\u05e4\u05e8 Long&gt;<\/tt> , \u05d5\u05e1\u05d5\u05d2\u05d9\u05dd \u05d1\u05e2\u05dc\u05d9 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05dc\u05dc\u05d0 \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> Map.Entry&lt;?,?&gt;<\/tt> .\u00a0 bound \u05e9\u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05de\u05d0\u05e4\u05e9\u05e8 \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05e1\u05d5\u05d2 \u05d0\u05ea \u05db\u05dc \u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05d4\u05e9\u05d9\u05d9\u05db\u05d9\u05dd \u05dc\u05de\u05e9\u05e4\u05d7\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e9\u05d4\u05ea\u05d5 \u05d4\u05db\u05dc\u05dc\u05d9 \u05de\u05e6\u05d9\u05d9\u05df.\u00a0 \u05d4\u05e1\u05d5\u05d2 \u05e2\u05dd \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05d4\u05ea\u05d5\u05d5\u05d9\u05dd \u05d4\u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05e0\u05d5\u05ea\u05e0\u05d9\u05dd \u05e8\u05e7 \u05d2\u05d9\u05e9\u05d4 \u05de\u05d5\u05d2\u05d1\u05dc\u05ea \u05dc\u05e9\u05d3\u05d5\u05ea \u05d5\u05dc\u05e9\u05d9\u05d8\u05d5\u05ea; \u05d4\u05d4\u05d2\u05d1\u05dc\u05d5\u05ea \u05ea\u05dc\u05d5\u05d9\u05d5\u05ea \u05d1\u05e1\u05d5\u05d2 \u05d4\u05ea\u05d5 \u05d4\u05db\u05dc\u05dc\u05d9.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05e9\u05dc \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05db\u05d2\u05d1\u05d5\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2):<\/p>\n<blockquote><p><tt> \u05de\u05d7\u05dc\u05e7\u05d4 X&lt;<b> <span style=\"color:#000099;\"> T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea List&lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/span> <\/b> &gt; {<\/tt><br \/>\n<tt> \u00a0 public void somemethod(T t) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 t.add(new Long(0L));\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05de\u05e1\u05e4\u05e8 n = t.remove(0);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u05de\u05d1\u05d7\u05df \u05db\u05d9\u05ea\u05d4 {<\/tt><br \/>\n<tt> \u00a0 public static void main(String[] args) {<\/tt><br \/>\n<tt> <b> <span style=\"color:#660000;\"> \u00a0\u00a0\u00a0\u00a0 <\/span> <\/b> <span style=\"color:#000000;\"> X&lt;ArrayList&lt;<\/span> <b> <span style=\"color:#000099;\"> \u05d0\u05b8\u05e8\u05d5\u05b9\u05da<\/span> <\/b> <span style=\"color:#000000;\"> &gt;&gt; x1 = \u05d7\u05d3\u05e9 X&lt;ArrayList&lt;Long&gt;&gt;();\u00a0<\/span> <\/tt><br \/>\n<tt> <span style=\"color:#000000;\"> \u00a0\u00a0\u00a0\u00a0 X&lt;ArrayList&lt;<\/span> <b> <span style=\"color:#000099;\"> \u05d7\u05d5\u05bc\u05d8<\/span> <\/b> <span style=\"color:#000000;\"> &gt;&gt; x2 = \u05d7\u05d3\u05e9 X&lt;ArrayList&lt;String&gt;&gt;(); <\/span> <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05de\u05e9\u05ea\u05e0\u05d9 \u05d4\u05ea\u05d9\u05d9\u05d7\u05e1\u05d5\u05ea \u05de\u05e1\u05d5\u05d2<tt> \u05d8 <\/tt> (\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2) \u05de\u05d8\u05d5\u05e4\u05dc\u05d9\u05dd \u05db\u05de\u05d5 \u05de\u05e9\u05ea\u05e0\u05d9 \u05d4\u05ea\u05d9\u05d9\u05d7\u05e1\u05d5\u05ea \u05de\u05e1\u05d5\u05d2 \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd (\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05de\u05d0\u05d5\u05d2\u05d3).\u00a0 \u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05e9\u05dc\u05e0\u05d5 \u05d4\u05ea\u05d5\u05e6\u05d0\u05d4 \u05d4\u05d9\u05d0 \u05e9\u05d4\u05de\u05d4\u05d3\u05e8 \u05d3\u05d5\u05d7\u05d4 \u05d4\u05e4\u05e2\u05dc\u05ea \u05de\u05ea\u05d5\u05d3\u05d5\u05ea \u05e9\u05dc\u05d5\u05e7\u05d7\u05d5\u05ea \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05de\u05d4\u05e1\u05d5\u05d2 &#8220;\u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2&#8221; \u05e9\u05de\u05d9\u05d9\u05e6\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4-type, \u05db\u05d2\u05d5\u05df <tt> \u05e8\u05e9\u05d9\u05de\u05d4.\u05d4\u05d5\u05e1\u05e3<\/tt> , \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e2\u05dd \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05e2\u05dd \u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df.<br \/>\n\u05d9\u05d7\u05d3 \u05e2\u05dd \u05d6\u05d0\u05ea \u05d4\u05db\u05d1\u05d5\u05dc <tt> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/tt> \u05e7\u05d5\u05d1\u05e2 \u05d0\u05ea \u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05e9\u05de\u05e9 \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2. \u05d4\u05de\u05d4\u05d3\u05e8 \u05de\u05e7\u05d1\u05dc \u05d0\u05ea \u05db\u05dc \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9 \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 \u05d4\u05e9\u05d9\u05d9\u05db\u05d9\u05dd \u05dc\u05de\u05e9\u05e4\u05d7\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd <tt> \u05e8\u05e9\u05d9\u05de\u05ea &lt;? \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt;<\/tt> , \u05db\u05dc\u05d5\u05de\u05e8, \u05db\u05dc \u05ea\u05ea \u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc <tt> \u05e8\u05b0\u05e9\u05c1\u05b4\u05d9\u05de\u05b8\u05d4<\/tt> \u05e2\u05dd \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05e1\u05d5\u05d2 \u05e9\u05d4\u05d5\u05d0 \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> .<\/p>\n<p>\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d9\u05db\u05d5\u05dc \u05dc\u05e9\u05de\u05e9 \u05db\u05d2\u05d1\u05d5\u05dc \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d0\u05d7\u05e8.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d4\u05de\u05e9\u05de\u05e9 \u05db\u05e4\u05e8\u05de\u05d8\u05e8 \u05de\u05e1\u05d5\u05d2 \u05e1\u05d5\u05d2):<\/p>\n<blockquote><p><tt> \u05de\u05d7\u05dc\u05e7\u05d4 \u05d8\u05e8\u05d9\u05e4\u05dc<b> &lt;T&gt;<\/b> {<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 T fst, snd, trd;<\/tt><br \/>\n<tt> \u00a0 &lt; \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9<b> U<\/b> <b> <span style=\"color:#000099;\"> \u05de\u05d0\u05e8\u05d9\u05da \u05d0\u05ea T<\/span> <\/b> , <b> V <span style=\"color:#000099;\"> \u05de\u05d0\u05e8\u05d9\u05da \u05d0\u05ea T<\/span> <\/b> , <b> W <span style=\"color:#000099;\"> \u05de\u05d0\u05e8\u05d9\u05da \u05d0\u05ea T<\/span> <\/b> &gt; Triple(U arg1, V arg2, W arg3) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 fst = arg1;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 snd = arg2;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 trd = arg3;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05d6\u05d5 \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 <tt> \u05d8<\/tt> \u05e9\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05e2\u05dd \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e9\u05de\u05e9\u05ea \u05db\u05e7\u05d5\u05d1\u05d5\u05dc \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 <tt> U<\/tt> ,\u00a0 <tt> V<\/tt> \u05d5 <tt> W<\/tt> \u05e9\u05dc \u05e9\u05d9\u05d8\u05ea \u05de\u05d5\u05e4\u05e2 \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8 \u05e9\u05dc \u05d0\u05d5\u05ea\u05d4 \u05de\u05d7\u05dc\u05e7\u05d4.<\/p>\n<p>\u05d4\u05d6\u05d3\u05de\u05e0\u05d5\u05d9\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d5\u05ea \u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05db\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05d0\u05d7\u05e8\u05d9\u05dd \u05db\u05d5\u05dc\u05dc\u05d9\u05dd \u05de\u05e6\u05d1\u05d9\u05dd \u05e9\u05d1\u05d4\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1 \u05de\u05e7\u05d5\u05e0\u05df \u05de\u05d5\u05d2\u05d3\u05e8 \u05d1\u05ea\u05d5\u05da \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9 \u05d0\u05d5 \u05de\u05d7\u05dc\u05e7\u05d4 \u05de\u05e7\u05d5\u05de\u05d9\u05ea \u05de\u05d5\u05d2\u05d3\u05e8\u05ea \u05d1\u05ea\u05d5\u05da \u05e9\u05d9\u05d8\u05d4 \u05d2\u05e0\u05e8\u05d9\u05ea.\u00a0 \u05de\u05d5\u05ea\u05e8 \u05d0\u05e4\u05d9\u05dc\u05d5 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05db\u05e7\u05d5\u05d1\u05d5\u05dc \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d0\u05d7\u05e8 \u05d1\u05d0\u05d5\u05ea\u05d5 \u05e1\u05e2\u05d9\u05e3 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2.<\/p>\n<p>bound \u05e9\u05d4\u05d5\u05d0 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e0\u05d5\u05ea\u05df \u05d2\u05d9\u05e9\u05d4 \u05dc\u05db\u05dc \u05d4\u05d7\u05d1\u05e8\u05d9\u05dd \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05d9\u05dd \u05e9\u05dc\u05d4, \u05db\u05dc\u05d5\u05de\u05e8, \u05e9\u05d3\u05d5\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05d9\u05dd, \u05e9\u05d9\u05d8\u05d5\u05ea \u05d5\u05e1\u05d5\u05d2\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd. \u05e8\u05e7 \u05d1\u05e0\u05d0\u05d9\u05dd \u05d0\u05d9\u05e0\u05dd \u05e0\u05d2\u05d9\u05e9\u05d9\u05dd, \u05db\u05d9 \u05d0\u05d9\u05df \u05e2\u05e8\u05d5\u05d1\u05d4 \u05e9\u05dc\u05ea\u05ea-\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05dc \u05d4-bound \u05d9\u05e9 \u05d0\u05d5\u05ea\u05dd \u05d1\u05e0\u05d0\u05d9\u05dd \u05db\u05de\u05d5 \u05d4-bound.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05de\u05e9\u05de\u05e9\u05ea \u05db\u05e7\u05d5\u05d1\u05d5\u05dc \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d8\u05d9\u05e4\u05d5\u05e1):<\/p>\n<blockquote><p><tt> \u05de\u05e2\u05de\u05d3 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <span style=\"color:#000000;\"> SuperClass<\/span> {<\/tt><tt> \u00a0\u00a0\u00a0 \/\/ \u05d7\u05d1\u05e8\u05d9\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 EnumType \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 {THIS, THAT}<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e1\u05d8\u05d8\u05d9 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 staticField;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public static void staticMethod() { ... }<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 \/\/ \u05d7\u05d1\u05e8\u05d9\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05db\u05d9\u05ea\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea InnerClass { ... }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 Public Object nonStaticField;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public void nonStaticMethod() { ... }<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 \/\/ \u05d1\u05e0\u05d0\u05d9\u05dd<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public SuperClass() { ... }<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 \/\/ \u05d7\u05d1\u05e8\u05d9\u05dd \u05e4\u05e8\u05d8\u05d9\u05d9\u05dd<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8 \u05e4\u05e8\u05d8\u05d9 \u05e9\u05d3\u05d4 \u05e4\u05e8\u05d8\u05d9;\u00a0<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<p><tt> \u05e9\u05d9\u05e2\u05d5\u05e8 \u05d4\u05d2\u05de\u05e8 \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 SomeClass&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 <b> <span style=\"color:#006600;\"> SuperClass<\/span> <\/b> &gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05d7\u05e4\u05e5 T \u05e4\u05e8\u05d8\u05d9;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public SomeClass(T t) { object = t; }\u00a0<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 public String toString() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05dc\u05b7\u05d7\u05b2\u05d6\u05d5\u05b9\u05e8<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"static Nested type\u00a0\u00a0\u00a0 : \"+T.EnumType.class+\"\\n\"\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u05e9\u05d3\u05d4 \u05e1\u05d8\u05d8\u05d9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+T.staticField+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"static method\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+T.staticMethod()+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u05e1\u05d5\u05d2 \u05de\u05e7\u05d5\u05e0\u05df \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9: \"+T.InnerClass.class+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"non-static field\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+object.nonStaticField+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"non-static method\u00a0\u00a0\u00a0\u00a0 : \"+object.nonStaticMethod()+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"constructor\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+(\u05d7\u05d3\u05e9 T())+\"\\n\"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"private member\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+object.privateField+\"\\n\"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05db\u05d1\u05d5\u05dc <tt> SuperClass<\/tt> \u05e0\u05d5\u05ea\u05df \u05d2\u05d9\u05e9\u05d4 \u05dc\u05e1\u05d5\u05d2\u05d9\u05dd \u05d4\u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05e9\u05dc\u05d5, \u05e9\u05d3\u05d5\u05ea \u05d5\u05e9\u05d9\u05d8\u05d5\u05ea \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05d5\u05e9\u05d3\u05d5\u05ea \u05d5\u05e9\u05d9\u05d8\u05d5\u05ea \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd.\u00a0 \u05e8\u05e7 \u05d4\u05d1\u05e0\u05d0\u05d9 \u05d0\u05d9\u05e0\u05d5 \u05e0\u05d2\u05d9\u05e9.\u00a0 \u05d4\u05e1\u05d9\u05d1\u05d4 \u05dc\u05db\u05da \u05d4\u05d9\u05d0 \u05e9\u05d1\u05e0\u05d0\u05d9\u05dd \u05d0\u05d9\u05e0\u05dd \u05e2\u05d5\u05d1\u05e8\u05d9\u05dd \u05d1\u05d9\u05e8\u05d5\u05e9\u05d4. \u05db\u05dc \u05ea\u05ea \u05de\u05d7\u05dc\u05e7\u05d4 \u05de\u05d2\u05d3\u05d9\u05e8\u05d4 \u05d1\u05e0\u05d0\u05d9\u05dd \u05de\u05e9\u05dc\u05d4 \u05d5\u05d0\u05d9\u05e0\u05d4 \u05e6\u05e8\u05d9\u05db\u05d4 \u05dc\u05ea\u05de\u05d5\u05da \u05d1\u05d1\u05e0\u05d0\u05d9\u05dd \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05ea \u05d4\u05e2\u05dc \u05e9\u05dc\u05d4.\u00a0 \u05de\u05db\u05d0\u05df \u05e9\u05d0\u05d9\u05df \u05e2\u05e8\u05d5\u05d1\u05d4 \u05e9\u05ea\u05ea-\u05de\u05e2\u05de\u05d3 \u05e9\u05dc <tt> SuperClass<\/tt> \u05d9\u05d4\u05d9\u05d4 \u05d0\u05d5\u05ea\u05d5 \u05e7\u05d5\u05e0\u05e1\u05d8\u05e8\u05d5\u05e7\u05d8\u05d5\u05e8 \u05db\u05de\u05d5 \u05de\u05d7\u05dc\u05e7\u05ea \u05d4\u05e2\u05dc \u05e9\u05dc\u05d5.<\/p>\n<p>\u05d4\u05d4\u05e7\u05e9\u05e8 \u05e9\u05d1\u05d5<tt> Enum&lt;E \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;E&gt;&gt;<\/tt> &#8221; \u05de\u05d5\u05e4\u05d9\u05e2\u05d4 \u05d4\u05d9\u05d0 \u05d4\u05e6\u05d4\u05e8\u05ea \u05d4 <tt> Enum<\/tt> \u05db\u05d9\u05ea\u05d4 \u05d1\u05d7\u05d1\u05d9\u05dc\u05d4 <tt> java.lang<\/tt> :<\/p>\n<blockquote><p><tt> \u05e9\u05d9\u05e2\u05d5\u05e8 \u05de\u05d5\u05e4\u05e9\u05d8 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <b> Enum&lt;E \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;E&gt;&gt;<\/b> {<\/tt><br \/>\n<tt> \u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05e1\u05d5\u05d2 <tt> Enum<\/tt> \u05d4\u05d9\u05d0 \u05de\u05d7\u05dc\u05e7\u05ea \u05d4\u05d1\u05e1\u05d9\u05e1 \u05d4\u05de\u05e9\u05d5\u05ea\u05e4\u05ea \u05e9\u05dc \u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05e1\u05e4\u05d9\u05e8\u05d4.\u00a0 \u05d1-Java \u05e1\u05d5\u05d2 \u05e1\u05e4\u05d9\u05e8\u05d4 \u05db\u05d2\u05d5\u05df <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> \u05de\u05ea\u05d5\u05e8\u05d2\u05dd \u05dc\u05db\u05d9\u05ea\u05d4 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> \u05e9\u05de\u05ea\u05d0\u05e8\u05da <tt> Enum&lt;Color&gt;<\/tt> . \u05de\u05d8\u05e8\u05ea \u05db\u05d9\u05ea\u05ea \u05d4\u05e2\u05dc <tt> Enum<\/tt> \u05d4\u05d9\u05d0 \u05dc\u05e1\u05e4\u05e7 \u05e4\u05d5\u05e0\u05e7\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9\u05d5\u05ea \u05d4\u05de\u05e9\u05d5\u05ea\u05e4\u05ea \u05dc\u05db\u05dc \u05e1\u05d5\u05d2\u05d9 \u05d4\u05e1\u05e4\u05d9\u05e8\u05d4.<\/p>\n<p>\u05d4\u05e0\u05d4 \u05e9\u05e8\u05d8\u05d5\u05d8 \u05e9\u05dc \u05d4\u05db\u05d9\u05ea\u05d4 <tt> Enum<\/tt> :<\/p>\n<blockquote><p><tt> \u05e9\u05d9\u05e2\u05d5\u05e8 \u05de\u05d5\u05e4\u05e9\u05d8 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <b> Enum&lt;<span style=\"color:#000099;\"> \u05d4<\/span> \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;E&gt;&gt;<\/b> \u05de\u05d9\u05d9\u05e9\u05dd Comparable&lt;<b> <span style=\"color:#000099;\"> \u05d4<\/span> <\/b> &gt;, \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e1\u05d3\u05e8\u05d4 {<\/tt><br \/>\n<tt> \u00a0 \u05e9\u05dd \u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05e1\u05d5\u05e4\u05d9\u05ea \u05e4\u05e8\u05d8\u05d9\u05ea;<\/tt><br \/>\n<tt> \u00a0 public final String name() { ... }<\/tt><tt> \u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 int ordinal;<\/tt><br \/>\n<tt> \u00a0 public final int ordinal() { ... }<\/tt><\/p>\n<p><tt> \u00a0 protected Enum(\u05e9\u05dd \u05de\u05d7\u05e8\u05d5\u05d6\u05ea, int ordinal) { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 toString() { ... }<\/tt><br \/>\n<tt> \u00a0 public final boolean equals(Object other) { ... }<\/tt><br \/>\n<tt> \u00a0 public final int hashCode() { ... }<\/tt><br \/>\n<tt> \u00a0 protected final Object clone() \u05d6\u05d5\u05e8\u05e7 CloneNotSupportedException { ... }<\/tt><br \/>\n<tt> \u00a0 \u05d4\u05d2\u05de\u05e8 \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 int compareTo(<b> <span style=\"color:#000099;\"> \u05d4<\/span> <\/b> o) { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u05d4\u05d2\u05de\u05e8 \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 Class&lt;<b> <span style=\"color:#000099;\"> \u05d4<\/span> <\/b> &gt; getDeclaringClass() { ... }<\/tt><br \/>\n<tt> \u00a0 &lt;T \u05e1\u05d8\u05d8\u05d9 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;T&gt;&gt; T valueOf(Class&lt;T&gt; enumType, \u05e9\u05dd \u05de\u05d7\u05e8\u05d5\u05d6\u05ea) { ... }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05de\u05d0\u05e4\u05d9\u05d9\u05df \u05d4\u05de\u05e4\u05ea\u05d9\u05e2 \u05d1\u05d4\u05db\u05e8\u05d6\u05d4 &#8220;<tt> Enum&lt;E \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;E&gt;&gt;<\/tt> &#8220;\u05d4\u05d9\u05d0 \u05d4\u05e2\u05d5\u05d1\u05d3\u05d4 \u05e9\u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05d4\u05d5\u05d2\u05d3\u05e8\u05d4 \u05dc\u05d0\u05d7\u05e8\u05d5\u05e0\u05d4 <tt> Enum<\/tt> \u05d5\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05d4\u05d5\u05d2\u05d3\u05e8 \u05dc\u05d0\u05d7\u05e8\u05d5\u05e0\u05d4 <tt> \u05d4 <\/tt> \u05de\u05d5\u05e4\u05d9\u05e2\u05d9\u05dd \u05d1\u05d2\u05d1\u05d5\u05dc \u05e9\u05dc \u05d0\u05d5\u05ea\u05d5 \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2.\u00a0 \u05d6\u05d4 \u05d0\u05d5\u05de\u05e8 \u05e9\u05d4 <tt> Enum<\/tt> \u05e1\u05d5\u05d2 \u05d7\u05d9\u05d9\u05d1 \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05d5\u05e4\u05e2 \u05e2\u05d1\u05d5\u05e8 \u05d0\u05d7\u05d3 \u05de\u05ea\u05ea\u05d9 \u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc\u05d5.\u00a0 \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d4\u05d1\u05d9\u05df \u05de\u05d3\u05d5\u05e2 \u05d6\u05d4 \u05d4\u05d2\u05d9\u05d5\u05e0\u05d9, \u05e7\u05d7\u05d5 \u05d1\u05d7\u05e9\u05d1\u05d5\u05df \u05e9\u05db\u05dc \u05e1\u05d5\u05d2 enum \u05de\u05ea\u05d5\u05e8\u05d2\u05dd \u05dc\u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc <tt> Enum<\/tt> .<\/p>\n<p>\u05d4\u05e0\u05d4 \u05e1\u05d5\u05d2 \u05d4-enum \u05d4\u05de\u05e2\u05d5\u05e6\u05d1 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> :<\/p>\n<blockquote><p><tt> enum <b> \u05e6\u05b6\u05d1\u05b7\u05e2<\/b> {\u05d0\u05d3\u05d5\u05dd, \u05db\u05d7\u05d5\u05dc, \u05d9\u05e8\u05d5\u05e7}<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05de\u05d4\u05d3\u05e8 \u05de\u05ea\u05e8\u05d2\u05dd \u05d0\u05ea \u05d6\u05d4 \u05dc\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d1\u05d0\u05d4:<\/p>\n<blockquote><p><tt> \u05e9\u05d9\u05e2\u05d5\u05e8 \u05d4\u05d2\u05de\u05e8 \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <b> \u05e6\u05b6\u05d1\u05b7\u05e2<\/b> \u05de\u05e9\u05ea\u05e8\u05e2 <b> Enum&lt;Color&gt;<\/b> {<\/tt><br \/>\n<tt> \u00a0 public static final Color[] values() { return (Color[])$VALUES.clone(); }<\/tt><br \/>\n<tt> \u00a0 public static Color valueOf(\u05e9\u05dd \u05de\u05d7\u05e8\u05d5\u05d6\u05ea) { ... }<\/tt><tt> \u00a0 private Color(String s, int i) { super(s, i); }<\/tt><\/p>\n<p><tt> \u00a0 \u05e1\u05d5\u05e4\u05d9 \u05e1\u05d8\u05d8\u05d9 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05e6\u05d1\u05e2 \u05d0\u05d3\u05d5\u05dd;<\/tt><br \/>\n<tt> \u00a0 \u05e1\u05d5\u05e4\u05d9 \u05e1\u05d8\u05d8\u05d9 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05e6\u05d1\u05e2 \u05db\u05d7\u05d5\u05dc;<\/tt><br \/>\n<tt> \u00a0 \u05e1\u05d5\u05e4\u05d9 \u05e1\u05d8\u05d8\u05d9 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05e6\u05d1\u05e2 \u05d9\u05e8\u05d5\u05e7;<\/tt><\/p>\n<p><tt> \u00a0 \u05e6\u05d1\u05e2 \u05e1\u05d5\u05e4\u05d9 \u05e1\u05d8\u05d8\u05d9 \u05e4\u05e8\u05d8\u05d9 $VALUES[];<\/tt><\/p>\n<p><tt> \u00a0 \u05e1\u05d8\u05d8\u05d9 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 RED = new Color(\"RED\", 0);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 BLUE = new Color(\"BLUE\", 1);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 GREEN = new Color(\"GREEN\", 2);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 $VALUES = (\u05e6\u05d1\u05e2 \u05d7\u05d3\u05e9[] { \u05d0\u05d3\u05d5\u05dd, \u05db\u05d7\u05d5\u05dc, \u05d9\u05e8\u05d5\u05e7 });<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05d9\u05e8\u05d5\u05e9\u05d4 \u05de\u05e9\u05e4\u05d9\u05e2\u05d4 \u05e9\u05d4 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> \u05e1\u05d5\u05d2 \u05d9\u05d5\u05e8\u05e9 \u05d0\u05ea \u05db\u05dc \u05d4\u05e9\u05d9\u05d8\u05d5\u05ea \u05d4\u05de\u05d9\u05d5\u05e9\u05de\u05d5\u05ea \u05d1 <tt> Enum&lt;Color&gt;<\/tt> .\u00a0 \u05d1\u05d9\u05e0\u05d9\u05d4\u05dd \u05d4\u05d5\u05d0 <tt> \u05d4\u05e9\u05d5\u05d5\u05d4 \u05dc<\/tt> \u05e9\u05c1\u05b4\u05d9\u05d8\u05b8\u05d4.\u00a0 \u05d4 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2. \u05d4\u05e9\u05d5\u05d5\u05d4 \u05dc<\/tt> \u05d4\u05e9\u05d9\u05d8\u05d4 \u05db\u05e0\u05e8\u05d0\u05d4 \u05e6\u05e8\u05d9\u05db\u05d4 \u05dc\u05e7\u05d7\u05ea \u05d0 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> \u05d1\u05ea\u05d5\u05e8 \u05d8\u05d9\u05e2\u05d5\u05df.\u00a0 \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05d2\u05e8\u05d5\u05dd \u05dc\u05d6\u05d4 \u05dc\u05e7\u05e8\u05d5\u05ea \u05d1\u05db\u05d9\u05ea\u05d4 <tt> Enum<\/tt> \u05d4\u05d5\u05d0 \u05d2\u05e0\u05e8\u05d9 \u05d5\u05d4 <tt> Enum.compareTo<\/tt> \u05d4\u05e9\u05d9\u05d8\u05d4 \u05dc\u05d5\u05e7\u05d7\u05ea <tt> Enum<\/tt> \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc <tt> \u05d4 <\/tt> \u05d1\u05ea\u05d5\u05e8 \u05d8\u05d9\u05e2\u05d5\u05df.\u00a0 \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 \u05de\u05db\u05da, \u05d4\u05e7\u05dc\u05d3 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> \u05e0\u05d2\u05d6\u05e8 \u05de <tt> Enum&lt;Color&gt;<\/tt> \u05d9\u05d5\u05e8\u05e9 \u05d0 <tt> \u05d4\u05e9\u05d5\u05d5\u05d4 \u05dc<\/tt> \u05e9\u05d9\u05d8\u05d4 \u05e9\u05dc\u05d5\u05e7\u05d7\u05ea \u05d0 <tt> \u05e6\u05b6\u05d1\u05b7\u05e2<\/tt> \u05db\u05de\u05d5 \u05d5\u05d8\u05d9\u05e2\u05d5\u05df, \u05d1\u05d3\u05d9\u05d5\u05e7 \u05db\u05de\u05d5 \u05e9\u05e6\u05e8\u05d9\u05da.<br \/>\n\u05d0\u05dd \u05e0\u05e0\u05ea\u05d7 \u05d0\u05ea \u05d4\u05d4\u05e6\u05d4\u05e8\u05d4&#8221;<tt> Enum&lt;E \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;E&gt;&gt;<\/tt> &#8220;\u05d0\u05e0\u05d7\u05e0\u05d5 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05e8\u05d0\u05d5\u05ea \u05e9\u05dc\u05d3\u05e4\u05d5\u05e1 \u05d4\u05d6\u05d4 \u05d9\u05e9 \u05db\u05de\u05d4 \u05d4\u05d9\u05d1\u05d8\u05d9\u05dd.<\/p>\n<p>\u05e8\u05d0\u05e9\u05d9\u05ea, \u05d9\u05e9 \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d4 \u05e9\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d4\u05db\u05d1\u05d5\u05d1\u05dc \u05d4\u05d5\u05d0 \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1 \u05e2\u05e6\u05de\u05d5: &#8220;<tt> <b> Enum<\/b> &lt;E \u05de\u05ea\u05d0\u05e8\u05da <b> Enum<\/b> &lt;E&gt;&gt;<\/tt> &#8220;. \u05d6\u05d4 \u05de\u05d5\u05d5\u05d3\u05d0 \u05e9\u05e8\u05e7 \u05ea\u05ea-\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc \u05e1\u05d5\u05d2 <tt> Enum<\/tt> \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2. (\u05ea\u05d9\u05d0\u05d5\u05e8\u05d8\u05d9\u05ea, \u05d4\u05e7\u05dc\u05d3 <tt> Enum<\/tt> \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05d5\u05e4\u05e2 \u05e2\u05dc \u05e2\u05e6\u05de\u05d5, \u05db\u05de\u05d5 \u05d1 <tt> Enum&lt;Enum&gt;<\/tt> , \u05d0\u05d1\u05dc \u05d6\u05d4 \u05d1\u05d4\u05d7\u05dc\u05d8 \u05dc\u05d0 \u05d4\u05db\u05d5\u05d5\u05e0\u05d4 \u05d5\u05e7\u05e9\u05d4 \u05dc\u05d3\u05de\u05d9\u05d9\u05df \u05de\u05e6\u05d1 \u05e9\u05d1\u05d5 \u05de\u05d5\u05e4\u05e2 \u05db\u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05e9\u05d9\u05de\u05d5\u05e9\u05d9.)<\/p>\n<p>\u05e9\u05e0\u05d9\u05ea, \u05d9\u05e9 \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d4 \u05e9\u05e1\u05d5\u05d2 \u05d4\u05e4\u05e8\u05de\u05d8\u05e8 bound \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05d4\u05e4\u05e8\u05de\u05d8\u05e8 <tt> Enum<b> &lt;E&gt;<\/b> <\/tt> , \u05d4\u05de\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 type <tt> \u05d4<\/tt> \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05d4-bound. \u05d4\u05db\u05e8\u05d6\u05d4 \u05d6\u05d5 \u05de\u05d5\u05d5\u05d3\u05d0\u05ea \u05e9\u05d9\u05d7\u05e1\u05d9 \u05d4\u05d9\u05e8\u05d5\u05e9\u05d4 \u05d1\u05d9\u05df \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05dc\u05d1\u05d9\u05df \u05de\u05d5\u05e4\u05e2 \u05e9\u05dc <tt> Enum<\/tt> \u05d4\u05d5\u05d0 \u05de\u05d4\u05e6\u05d5\u05e8\u05d4<tt> X \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;X&gt;<\/tt> &#8220;. \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05db\u05d2\u05d5\u05df &#8220;<tt> X \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;Y&gt;<\/tt> &#8220;\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05db\u05e8\u05d9\u05d6 \u05d1\u05d2\u05dc\u05dc \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d4\u05e1\u05d5\u05d2 <tt> \u05d9<\/tt> \u05dc\u05d0 \u05d9\u05d4\u05d9\u05d4 \u05d1\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea; \u05e8\u05e7 \u05ea\u05ea-\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc <tt> Enum&lt;X&gt;<\/tt> \u05e0\u05de\u05e6\u05d0\u05d9\u05dd \u05d1\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea.<\/p>\n<p>\u05e9\u05dc\u05d9\u05e9\u05d9\u05ea, \u05d9\u05e9 \u05d0\u05ea \u05d4\u05e2\u05d5\u05d1\u05d3\u05d4 \u05e9 <tt> Enum<\/tt> \u05d4\u05d5\u05d0 \u05d2\u05e0\u05e8\u05d9 \u05de\u05dc\u05db\u05ea\u05d7\u05d9\u05dc\u05d4.\u00a0 \u05d6\u05d4 \u05d0\u05d5\u05de\u05e8 \u05e9\u05d7\u05dc\u05e7 \u05de\u05d4\u05e9\u05d9\u05d8\u05d5\u05ea \u05e9\u05dc \u05d4\u05db\u05d9\u05ea\u05d4 <tt> Enum<\/tt> \u05e7\u05d7 \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05d0\u05d5 \u05d4\u05d7\u05d6\u05e8 \u05e2\u05e8\u05da \u05de\u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2 (\u05d0\u05d5 \u05ea\u05dc\u05d5\u05d9 \u05d1\u05e6\u05d5\u05e8\u05d4 \u05d0\u05d7\u05e8\u05ea \u05d1\u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2). \u05db\u05e4\u05d9 \u05e9\u05d0\u05e0\u05d5 \u05db\u05d1\u05e8 \u05d9\u05d5\u05d3\u05e2\u05d9\u05dd, \u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2 \u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05de\u05d0\u05d5\u05d7\u05e8 \u05d9\u05d5\u05ea\u05e8 \u05ea\u05ea-\u05e1\u05d5\u05d2 <tt> X<\/tt> \u05e9\u05c1\u05b6\u05dc <tt> Enum&lt;X&gt;<\/tt> .\u00a0 \u05dc\u05e4\u05d9\u05db\u05da, \u05d1\u05e1\u05d5\u05d2 \u05d4\u05e4\u05e8\u05de\u05d8\u05e8 <tt> Enum&lt;X&gt;<\/tt> , \u05e9\u05d9\u05d8\u05d5\u05ea \u05d0\u05dc\u05d4 \u05db\u05e8\u05d5\u05db\u05d5\u05ea \u05d1\u05ea\u05ea-\u05d4\u05e1\u05d5\u05d2 <tt> X<\/tt> , \u05d5\u05d4\u05dd \u05e2\u05d5\u05d1\u05e8\u05d9\u05dd \u05d1\u05d9\u05e8\u05d5\u05e9\u05d4 \u05dc\u05ea\u05d5\u05da \u05ea\u05ea-\u05d4\u05e1\u05d5\u05d2 <tt> X<\/tt> .\u00a0 \u05d4 <tt> \u05d4\u05e9\u05d5\u05d5\u05d4 \u05dc<\/tt> \u05e9\u05d9\u05d8\u05d4 \u05d4\u05d9\u05d0 \u05d3\u05d5\u05d2\u05de\u05d4 \u05dc\u05e9\u05d9\u05d8\u05d4 \u05db\u05d6\u05d5; \u05d4\u05d5\u05d0 \u05e2\u05d5\u05d1\u05e8 \u05d1\u05d9\u05e8\u05d5\u05e9\u05d4 \u05de\u05de\u05d7\u05dc\u05e7\u05ea \u05d4\u05e2\u05dc \u05dc\u05db\u05dc \u05ea\u05ea-\u05de\u05d7\u05dc\u05e7\u05d4 \u05d5\u05d9\u05e9 \u05dc\u05d5 \u05d7\u05ea\u05d9\u05de\u05d4 \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05ea \u05dc\u05ea\u05ea-\u05de\u05d7\u05dc\u05e7\u05d4 \u05d1\u05db\u05dc \u05de\u05e7\u05e8\u05d4.<\/p>\n<p>\u05dc\u05e1\u05d9\u05db\u05d5\u05dd, \u05d4\u05d4\u05db\u05e8\u05d6\u05d4 &#8220;<tt> Enum&lt;E \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Enum&lt;E&gt;&gt;<\/tt> &#8220;\u05e0\u05d9\u05ea\u05df \u05dc\u05e4\u05e2\u05e0\u05d7 \u05db\u05da: <tt> Enum<\/tt> \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9 \u05e9\u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e4\u05e2\u05d9\u05dc \u05e8\u05e7 \u05e2\u05d1\u05d5\u05e8 \u05ea\u05ea-\u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc\u05d5, \u05d5\u05ea\u05ea\u05d9-\u05d4\u05e1\u05d5\u05d2\u05d9\u05dd \u05d4\u05dc\u05dc\u05d5 \u05d9\u05e8\u05e9\u05d5 \u05db\u05de\u05d4 \u05e9\u05d9\u05d8\u05d5\u05ea \u05e9\u05d9\u05de\u05d5\u05e9\u05d9\u05d5\u05ea, \u05d7\u05dc\u05e7\u05df \u05dc\u05d5\u05e7\u05d7\u05d5\u05ea \u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9\u05d9\u05dd \u05dc\u05ea\u05ea-\u05d8\u05d9\u05e4\u05d5\u05e1 (\u05d0\u05d5 \u05ea\u05dc\u05d5\u05d9\u05d5\u05ea \u05d0\u05d7\u05e8\u05ea \u05d1\u05ea\u05ea-\u05d4\u05e1\u05d5\u05d2).<\/p>\n<p><b>\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05d2\u05d1\u05d5\u05dc \u05ea\u05d7\u05ea\u05d5\u05df \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05d5\u05ea<\/b><\/p>\n<p>\u05dc\u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05e1\u05d5\u05d2 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05e1\u05e4\u05e8 \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea, \u05db\u05de\u05d5 \u05d1 <tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {...}<\/tt> . \u05d0\u05d1\u05dc \u05dc\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05d2\u05d1\u05d5\u05dc \u05ea\u05d7\u05ea\u05d5\u05df, \u05db\u05dc\u05d5\u05de\u05e8, \u05de\u05d1\u05e0\u05d4 \u05db\u05d2\u05d5\u05df <tt> \u05de\u05d7\u05dc\u05e7\u05d4 Box&lt;T <b> \u05d2\u05b8\u05d3\u05d5\u05b9\u05dc<\/b> Number&gt; {...}<\/tt> \u05d0\u05d9\u05e0\u05d5 \u05de\u05d5\u05ea\u05e8.\u00a0 \u05dc\u05de\u05d4 \u05dc\u05d0?\u00a0 \u05d4\u05ea\u05e9\u05d5\u05d1\u05d4 \u05d4\u05d9\u05d0: \u05d6\u05d4 \u05d7\u05e1\u05e8 \u05d8\u05e2\u05dd \u05db\u05d9 \u05d6\u05d4 \u05dc\u05d0 \u05d4\u05d9\u05d4 \u05e7\u05d5\u05e0\u05d4 \u05dc\u05da \u05db\u05dc\u05d5\u05dd, \u05d0\u05d9\u05dc\u05d5 \u05d4\u05d9\u05d4 \u05de\u05d5\u05ea\u05e8.\u00a0 \u05d4\u05d1\u05d4 \u05e0\u05e8\u05d0\u05d4 \u05de\u05d3\u05d5\u05e2 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05e1\u05e3 \u05ea\u05d7\u05ea\u05d5\u05df \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05de\u05d1\u05dc\u05d1\u05dc\u05d9\u05dd \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d1\u05d7\u05d9\u05e0\u05ea \u05d4\u05de\u05e9\u05de\u05e2\u05d5\u05ea \u05e9\u05dc \u05e1\u05e3 \u05e2\u05dc\u05d9\u05d5\u05df \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2.<\/p>\n<p>\u05dc\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d9\u05e9 \u05e9\u05dc\u05d5\u05e9 \u05d4\u05e9\u05e4\u05e2\u05d5\u05ea:<\/p>\n<ol>\n<ol>\n<li><b> <i> \u05de\u05d5\u05e4\u05e2 \u05de\u05d5\u05d2\u05d1\u05dc.<\/i> <\/b> \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05de\u05d2\u05d1\u05d9\u05dc \u05d0\u05ea \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e9\u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d4\u05dd \u05dc\u05d0\u05d9\u05e0\u05e1\u05d8\u05e6\u05d9\u05d4 \u05e9\u05dc \u05d4\u05e1\u05d5\u05d2 \u05d4\u05d2\u05e0\u05e8\u05d9.\u00a0 \u05d0\u05dd \u05e0\u05db\u05e8\u05d9\u05d6 \u05e2\u05dc \u05d0 <tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {...} <\/tt> \u05d0\u05d6 \u05d4\u05de\u05d4\u05d3\u05e8 \u05d9\u05d1\u05d8\u05d9\u05d7 \u05e9\u05e8\u05e7 \u05ea\u05ea-\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d9\u05db\u05d5\u05dc \u05dc\u05e9\u05de\u05e9 \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8 \u05e1\u05d5\u05d2.\u00a0 \u05db\u05dc\u05d5\u05de\u05e8, \u05d0 <tt> Box&lt;Number&gt;<\/tt> \u05d0\u05d5 \u05d0 <tt> Box&lt;Long&gt;<\/tt> \u05de\u05d5\u05ea\u05e8, \u05d0\u05d1\u05dc \u05d0 <tt> Box&lt;Object&gt;<\/tt> \u05d0\u05d5\u05b9 <tt> Box&lt;String&gt;<\/tt> \u05d9\u05d9\u05d3\u05d7\u05d4<\/li>\n<\/ol>\n<\/ol>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05e9\u05dc \u05de\u05d5\u05e4\u05e2 \u05de\u05d5\u05d2\u05d1\u05dc \u05e2\u05e7\u05d1 \u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2):<br \/>\n<tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e2\u05e8\u05da T \u05e4\u05e8\u05d8\u05d9;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public Box(T t) { value = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }\u00a0<\/tt><tt> \u05de\u05d1\u05d7\u05df \u05db\u05d9\u05ea\u05d4 {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public static void main(String[] args) {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Box&lt;Long&gt; boxOfLong = \u05d7\u05d3\u05e9 Box&lt;Long&gt;(0L);\u00a0\u00a0 <b> \/\/ \u05d1\u05e1\u05d3\u05e8<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Box&lt;String&gt; boxOfString = new Box&lt;String&gt;(\"\"); <b> <span style=\"color:#330000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4: \u05d4\u05de\u05d7\u05e8\u05d5\u05d6\u05ea \u05d0\u05d9\u05e0\u05d4 \u05d1\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<ol>\n<li><b> <i> \u05d2\u05d9\u05e9\u05d4 \u05dc\u05d7\u05d1\u05e8\u05d9\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd. <\/i> <\/b> \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05e0\u05d5\u05ea\u05df \u05d2\u05d9\u05e9\u05d4 \u05dc\u05db\u05dc \u05d4\u05e9\u05d9\u05d8\u05d5\u05ea \u05d5\u05d4\u05e9\u05d3\u05d5\u05ea \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05d9\u05dd \u05d4\u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05e9\u05dc \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df.\u00a0 \u05d1\u05d9\u05d9\u05e9\u05d5\u05dd \u05e9\u05dc\u05e0\u05d5 <tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {...}<\/tt> \u05d0\u05e0\u05d5 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05e4\u05e2\u05d9\u05dc \u05d0\u05ea \u05db\u05dc \u05d4\u05e9\u05d9\u05d8\u05d5\u05ea \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05d5\u05ea \u05d4\u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d5\u05ea \u05d4\u05de\u05d5\u05d2\u05d3\u05e8\u05d5\u05ea \u05d1\u05db\u05d9\u05ea\u05d4 <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> , \u05db\u05d2\u05d5\u05df <tt> intValue()<\/tt> \u05dc\u05b0\u05de\u05b8\u05e9\u05c1\u05b8\u05dc.\u00a0 \u05dc\u05dc\u05d0 \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05d4\u05de\u05d4\u05d3\u05e8 \u05d9\u05d3\u05d7\u05d4 \u05db\u05dc \u05e7\u05e8\u05d9\u05d0\u05d4 \u05db\u05d6\u05d5. \u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05d2\u05d9\u05e9\u05d4 \u05dc\u05d0\u05d9\u05d1\u05e8\u05d9\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05e2\u05e7\u05d1 \u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2):<\/li>\n<\/ol>\n<p><tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e2\u05e8\u05da T \u05e4\u05e8\u05d8\u05d9;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public Box(T t) { value = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public int increment() { return value.intValue()+1; } <b> \/\/ &lt;= \u05ea\u05d4\u05d9\u05d4 \u05e9\u05d2\u05d9\u05d0\u05d4 \u05dc\u05dc\u05d0 \u05d4\u05de\u05e1\u05e4\u05e8 \u05de\u05d5\u05d2\u05d1\u05dc<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }\u00a0<\/tt><\/p>\n<ol>\n<ol>\n<li><b> <i> \u05d4\u05e7\u05dc\u05d3 \u05de\u05d7\u05d9\u05e7\u05d4. <\/i> <\/b> \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05d1\u05d9\u05d5\u05ea\u05e8 \u05de\u05e9\u05de\u05e9 \u05dc\u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 \u05d5\u05de\u05d7\u05dc\u05d9\u05e3 \u05d0\u05ea \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d1\u05e7\u05d5\u05d3 \u05d4\u05d1\u05ea\u05d9\u05dd.\u00a0 \u05d0\u05e6\u05dc\u05e0\u05d5 <tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {...}<\/tt> \u05db\u05dc \u05d4\u05d4\u05ea\u05e8\u05d7\u05e9\u05d5\u05d9\u05d5\u05ea \u05e9\u05dc <tt> \u05d8<\/tt> \u05d9\u05d5\u05d7\u05dc\u05e3 \u05d1\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> .\u00a0 \u05dc\u05de\u05e9\u05dc, \u05d0\u05dd \u05db\u05d9\u05ea\u05d4 <tt> \u05e7\u05d5\u05bc\u05e4\u05e1\u05b8\u05d4<\/tt> \u05d9\u05e9 \u05e9\u05d3\u05d4 \u05e4\u05e8\u05d8\u05d9 \u05e9\u05dc \u05e1\u05d5\u05d2 <tt> \u05d8<\/tt> \u05d5\u05e9\u05d9\u05d8\u05d4 <tt> void set (\u05ea\u05d5\u05db\u05df T) <\/tt> \u05dc\u05d4\u05d2\u05d3\u05e8\u05ea \u05e9\u05d3\u05d4 \u05e4\u05e8\u05d8\u05d9 \u05d6\u05d4, \u05d4\u05e9\u05d3\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05de\u05e1\u05d5\u05d2 <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05dc\u05d0\u05d7\u05e8 \u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 \u05d5\u05d4\u05e9\u05d9\u05d8\u05d4 \u05ea\u05ea\u05d5\u05e8\u05d2\u05dd \u05dc\u05e9\u05d9\u05d8\u05d4 <tt> \u05d4\u05d5\u05d2\u05d3\u05e8 \u05e8\u05d9\u05e7 (\u05ea\u05d5\u05db\u05df \u05de\u05e1\u05e4\u05e8)<\/tt> .<\/li>\n<\/ol>\n<\/ol>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d1\u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 &#8211; <i> \u05dc\u05b4\u05e4\u05e0\u05b5\u05d9<\/i> \u05e1\u05d5\u05d2 \u05de\u05d7\u05d9\u05e7\u05d4):<br \/>\n<tt> \u05de\u05d7\u05dc\u05e7\u05d4 Box&lt;<b> T \u05de\u05e8\u05d7\u05d9\u05d1 \u05de\u05e1\u05e4\u05e8<\/b> &gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> \u05d8<\/b> \u05e2\u05b5\u05e8\u05b6\u05da;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05ea\u05d9\u05d1\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> \u05d8<\/b> t) { value = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }\u00a0<\/tt><\/p>\n<ol>\n<ol>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d1\u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 &#8211;<\/ol>\n<\/ol>\n<p><i> \u05dc\u05b0\u05d0\u05b7\u05d7\u05b7\u05e8<\/i><\/p>\n<ol>\n<ol>\u05e1\u05d5\u05d2 \u05de\u05d7\u05d9\u05e7\u05d4):<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><tt> class Box {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/b> \u05e2\u05b5\u05e8\u05b6\u05da;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05ea\u05d9\u05d1\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/b> t) { value = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<ol>\u05d1\u05e0\u05d5\u05e1\u05e3, \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05d1\u05d9\u05d5\u05ea\u05e8 \u05de\u05d5\u05e4\u05d9\u05e2 \u05d1\u05de\u05e7\u05d5\u05de\u05d5\u05ea \u05e0\u05d5\u05e1\u05e4\u05d9\u05dd, \u05db\u05d2\u05d5\u05df \u05d9\u05e6\u05d9\u05d0\u05d5\u05ea \u05e9\u05d4\u05d5\u05db\u05e0\u05e1\u05d5 \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9\u05ea \u05d5\u05e9\u05d9\u05d8\u05d5\u05ea \u05d2\u05e9\u05e8.<\/ol>\n<p>\u05d0\u05dd \u05d4\u05d9\u05d5 \u05de\u05d5\u05ea\u05e8\u05d9\u05dd \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05ea\u05d7\u05ea\u05d5\u05e0\u05d9\u05dd \u05d1\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05e1\u05d5\u05d2, \u05d0\u05d9\u05dc\u05d5 \u05ea\u05d5\u05e4\u05e2\u05d5\u05ea \u05dc\u05d5\u05d5\u05d0\u05d9 \u05d4\u05d9\u05d5 \u05d0\u05d5 \u05e6\u05e8\u05d9\u05db\u05d5\u05ea \u05dc\u05d4\u05d9\u05d5\u05ea \u05dc\u05d4\u05df? \u05d0\u05dd \u05de\u05d1\u05e0\u05d4 \u05db\u05d2\u05d5\u05df <tt> \u05de\u05d7\u05dc\u05e7\u05d4 Box&lt;T <b> \u05d2\u05b8\u05d3\u05d5\u05b9\u05dc<\/b> Number&gt; {...} <\/tt> \u05d4\u05d9\u05d5 \u05de\u05d5\u05ea\u05e8, \u05de\u05d4 \u05d6\u05d4 \u05d0\u05d5\u05de\u05e8?\u00a0 \u05de\u05d4 \u05d9\u05d2\u05d9\u05d3\u05d5 \u05e9\u05dc\u05d5\u05e9 \u05ea\u05d5\u05e4\u05e2\u05d5\u05ea \u05d4\u05dc\u05d5\u05d5\u05d0\u05d9 \u05e9\u05dc \u05d2\u05d1\u05d5\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05de\u05e1\u05d5\u05d2 \u05e2\u05dc\u05d9\u05d5\u05df &#8211; \u05de\u05d5\u05e4\u05e2 \u05de\u05d5\u05d2\u05d1\u05dc, \u05d2\u05d9\u05e9\u05d4 \u05dc\u05d0\u05d9\u05d1\u05e8 \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9, \u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 &#8211; \u05e2\u05d1\u05d5\u05e8 \u05d2\u05d1\u05d5\u05dc \u05ea\u05d7\u05ea\u05d5\u05df?<\/p>\n<p><i> \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05de\u05d5\u05d2\u05d1\u05dc\u05d9\u05dd. <\/i> \u05d4\u05de\u05d4\u05d3\u05e8 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d2\u05d1\u05d9\u05dc \u05d0\u05ea \u05e7\u05d1\u05d5\u05e6\u05ea \u05d4\u05d8\u05d9\u05e4\u05d5\u05e1\u05d9\u05dd \u05e9\u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05d4\u05dd \u05dc\u05d0\u05d9\u05e0\u05e1\u05d8\u05e6\u05d9\u05d4 \u05e9\u05dc \u05d4\u05e1\u05d5\u05d2 \u05d4\u05d2\u05e0\u05e8\u05d9 \u05e2\u05dd \u05e4\u05e8\u05de\u05d8\u05e8 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05ea\u05d7\u05ea\u05d5\u05df.\u00a0 \u05dc\u05d3\u05d5\u05d2\u05de\u05d4, \u05d4\u05de\u05d4\u05d3\u05e8 \u05d9\u05db\u05d5\u05dc \u05dc\u05d0\u05e4\u05e9\u05e8 \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> Box&lt;Number&gt;<\/tt> \u05d5 <tt> Box&lt;Object&gt;<\/tt> \u05de\u05d0 <tt> Box&lt;T <b> \u05d2\u05b8\u05d3\u05d5\u05b9\u05dc<\/b> Number&gt; <\/tt> \u05d5\u05dc\u05d3\u05d7\u05d5\u05ea \u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05db\u05d2\u05d5\u05df <tt> Box&lt;Long&gt;<\/tt> \u05d0\u05d5\u05b9 <tt> Box&lt;Short&gt;<\/tt> .\u00a0 \u05d6\u05d5 \u05ea\u05d4\u05d9\u05d4 \u05d4\u05e9\u05e4\u05e2\u05d4 \u05d1\u05d4\u05ea\u05d0\u05dd \u05dc\u05ea\u05d5\u05e4\u05e2\u05ea \u05d4\u05dc\u05d5\u05d5\u05d0\u05d9 \u05d4\u05de\u05d2\u05d1\u05d9\u05dc\u05d4 \u05e9\u05ea\u05d5\u05d0\u05e8\u05d4 \u05e2\u05d1\u05d5\u05e8 \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05d4\u05e1\u05d5\u05d2 \u05d4\u05e2\u05dc\u05d9\u05d5\u05df.<\/p>\n<p><i> \u05d2\u05d9\u05e9\u05d4 \u05dc\u05d7\u05d1\u05e8\u05d9\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd. <\/i> \u05d2\u05d1\u05d5\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05e0\u05de\u05d5\u05da \u05d9\u05d5\u05ea\u05e8 \u05d0\u05d9\u05e0\u05d5 \u05e0\u05d5\u05ea\u05df \u05d2\u05d9\u05e9\u05d4 \u05dc\u05e9\u05d9\u05d8\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05de\u05d5\u05ea \u05de\u05e2\u05d1\u05e8 \u05dc\u05d0\u05dc\u05d5 \u05e9\u05d4\u05d5\u05e2\u05d1\u05e8\u05d5 \u05d1\u05d9\u05e8\u05d5\u05e9\u05d4 \u05de\u05d4\u05de\u05d7\u05dc\u05e7\u05d4 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> . \u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05e9\u05dc <tt> Box&lt;T <b> \u05d2\u05b8\u05d3\u05d5\u05b9\u05dc<\/b> Number&gt; <\/tt> \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05d4\u05e2\u05dc \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d0\u05d9\u05df \u05dc\u05d4\u05dd \u05e9\u05d5\u05dd \u05d3\u05d1\u05e8 \u05d1\u05de\u05e9\u05d5\u05ea\u05e3, \u05de\u05dc\u05d1\u05d3 \u05e9\u05d4\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05d4\u05ea\u05d9\u05d9\u05d7\u05e1\u05d5\u05ea \u05d5\u05dc\u05db\u05df \u05ea\u05ea-\u05e1\u05d5\u05d2\u05d9\u05dd \u05e9\u05dc <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> .\u00a0 \u05d4\u05de\u05d4\u05d3\u05e8 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05e0\u05d9\u05d7 \u05e9\u05e9\u05d3\u05d4 \u05d4\u05e1\u05d5\u05d2 <tt> \u05d8<\/tt> \u05d4\u05d5\u05d0 \u05de\u05e1\u05d5\u05d2 <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d0\u05d5 \u05ea\u05ea-\u05e1\u05d5\u05d2 \u05e9\u05dc\u05d5.\u00a0 \u05d1\u05de\u05e7\u05d5\u05dd \u05d6\u05d0\u05ea, \u05e9\u05d3\u05d4 \u05d4\u05e1\u05d5\u05d2 <tt> \u05d8<\/tt> \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05db\u05dc \u05e1\u05d5\u05d2 \u05e2\u05dc \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> , \u05db\u05d2\u05d5\u05df <tt> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e1\u05d3\u05e8\u05d4<\/tt> \u05d0\u05d5\u05b9 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> .\u00a0 \u05d4\u05d6\u05de\u05e0\u05ea \u05e9\u05d9\u05d8\u05d4 \u05db\u05d2\u05d5\u05df <tt> intValue()<\/tt> \u05d0\u05d9\u05e0\u05d5 \u05d1\u05d8\u05d5\u05d7 \u05d9\u05d5\u05ea\u05e8 \u05dc\u05e1\u05d5\u05d2 \u05d5\u05d4\u05de\u05d4\u05d3\u05e8 \u05d9\u05e6\u05d8\u05e8\u05da \u05dc\u05d3\u05d7\u05d5\u05ea \u05d0\u05d5\u05ea\u05d5. \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 \u05de\u05db\u05da, \u05d4\u05d2\u05d1\u05d5\u05dc \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d4\u05ea\u05d7\u05ea\u05d5\u05df \u05dc\u05d0 \u05d9\u05d9\u05ea\u05df \u05d2\u05d9\u05e9\u05d4 \u05dc\u05d0\u05d9\u05d1\u05e8\u05d9\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05de\u05e2\u05d1\u05e8 \u05dc\u05d0\u05dc\u05d4 \u05e9\u05d4\u05d5\u05d2\u05d3\u05e8\u05d5 \u05d1\u05db\u05d9\u05ea\u05d4 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d5\u05d1\u05db\u05da \u05d9\u05e9 \u05d0\u05ea \u05d0\u05d5\u05ea\u05d4 \u05d4\u05e9\u05e4\u05e2\u05d4 \u05db\u05de\u05d5 &#8220;\u05dc\u05dc\u05d0 bound&#8221;.<\/p>\n<p><i> \u05d4\u05e7\u05dc\u05d3 \u05de\u05d7\u05d9\u05e7\u05d4<\/i> .\u00a0 \u05d1\u05e2\u05e7\u05d1\u05d5\u05ea \u05e7\u05d5 \u05d4\u05d4\u05d9\u05d2\u05d9\u05d5\u05df \u05d4\u05d6\u05d4, \u05d0\u05d9\u05df \u05d6\u05d4 \u05d4\u05d2\u05d9\u05d5\u05e0\u05d9 \u05dc\u05d4\u05d7\u05dc\u05d9\u05e3 \u05d0\u05ea \u05d4\u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d1\u05d2\u05d1\u05d5\u05dc \u05d4\u05ea\u05d7\u05ea\u05d5\u05df \u05d4\u05e9\u05de\u05d0\u05dc\u05d9 \u05d1\u05d9\u05d5\u05ea\u05e8 \u05e9\u05dc\u05d5.\u00a0 \u05d4\u05db\u05e8\u05d6\u05d4 \u05e2\u05dc \u05e9\u05d9\u05d8\u05d4 \u05db\u05de\u05d5 \u05d4\u05d1\u05e0\u05d0\u05d9 <tt> \u05e7\u05d5\u05bc\u05e4\u05e1\u05b8\u05d4(<b> \u05d8<\/b> \u05d8) <\/tt> \u05d1\u05ea\u05d5\u05e8 \u05e7\u05d5\u05e0\u05e1\u05d8\u05e8\u05d5\u05e7\u05d8\u05d5\u05e8 <tt> \u05e7\u05d5\u05bc\u05e4\u05e1\u05b8\u05d4(<b> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/b> \u05d8)<\/tt> \u05dc\u05d0 \u05d4\u05d2\u05d9\u05d5\u05e0\u05d9 \u05d1\u05d4\u05ea\u05d7\u05e9\u05d1 \u05d1\u05db\u05da <tt> \u05d8<\/tt> \u05de\u05d5\u05d7\u05dc\u05e3 \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05e2\u05dc \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> .\u00a0 \u05d0 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05e2\u05e9\u05d5\u05d9 \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05d5\u05e2\u05d1\u05e8 \u05d1\u05e6\u05d3\u05e7 \u05dc\u05d1\u05e0\u05d0\u05d9 \u05d1\u05e8\u05d2\u05e2 <tt> Box&lt;Object&gt;<\/tt> \u05d5\u05d4\u05e7\u05d5\u05e0\u05e1\u05d8\u05e8\u05d5\u05e7\u05d8\u05d5\u05e8 \u05d9\u05d3\u05d7\u05d4 \u05d0\u05ea \u05d6\u05d4.\u00a0 \u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05de\u05de\u05e9 \u05e9\u05d2\u05d5\u05d9.\u00a0\u00a0 \u05d0\u05d6 \u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 \u05ea\u05d7\u05dc\u05d9\u05e3 \u05d0\u05ea \u05db\u05dc \u05d4\u05de\u05d5\u05e4\u05e2\u05d9\u05dd \u05e9\u05dc \u05de\u05e9\u05ea\u05e0\u05d4 \u05d4\u05e1\u05d5\u05d2<tt> \u05d8<\/tt> \u05dc\u05e4\u05d9 \u05e1\u05d5\u05d2 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> , \u05d5\u05dc\u05d0 \u05dc\u05e4\u05d9 \u05d4\u05d2\u05d1\u05d5\u05dc \u05d4\u05ea\u05d7\u05ea\u05d5\u05df \u05e9\u05dc\u05d5.\u00a0 \u05e9\u05d5\u05d1, \u05dc\u05d2\u05d1\u05d5\u05dc \u05d4\u05ea\u05d7\u05ea\u05d5\u05df \u05ea\u05d4\u05d9\u05d4 \u05d0\u05d5\u05ea\u05d4 \u05d4\u05e9\u05e4\u05e2\u05d4 \u05db\u05de\u05d5 &#8220;\u05dc\u05dc\u05d0 \u05d2\u05d1\u05d5\u05dc&#8221;.<\/p>\n<p>\u05d4\u05d0\u05dd \u05d0\u05ea\u05d4 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d4\u05d1\u05d9\u05df \u05de\u05d4 \u05d6\u05d4 \u05d0\u05d5\u05de\u05e8 \u05d0\u05dd \u05e9\u05e0\u05d9\u05d4\u05dd \u05d9\u05d5\u05e8\u05d3\u05d9\u05dd <i> _\u05d5_<\/i> \u05d4\u05d5\u05ea\u05e8 \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e2\u05dc\u05d9\u05d5\u05e0\u05d9\u05dd?\u00a0\u00a0 \u05d1\u05d0\u05d5\u05e4\u05df \u05d0\u05d9\u05e9\u05d9, \u05d0\u05e0\u05d9 \u05d0\u05e4\u05d9\u05dc\u05d5 \u05dc\u05d0 \u05e8\u05d5\u05e6\u05d4 \u05dc\u05d7\u05e9\u05d5\u05d1 \u05e2\u05dc \u05d6\u05d4 \u05d5\u05d0\u05e2\u05d3\u05d9\u05e3 \u05dc\u05d4\u05d2\u05d9\u05e9 \u05d0\u05ea \u05d6\u05d4 \u05ea\u05d7\u05ea &#8220;\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05e0\u05d9\u05d4\u05d5\u05dc&#8221;, \u05d0\u05dd \u05d0\u05ea\u05d4 \u05de\u05ea\u05d9\u05e8.<\/p>\n<p>\u05d4\u05e9\u05d5\u05e8\u05d4 \u05d4\u05ea\u05d7\u05ea\u05d5\u05e0\u05d4 \u05d4\u05d9\u05d0: \u05db\u05dc \u05d6\u05d4 &#8220;<tt> \u05d2\u05b8\u05d3\u05d5\u05b9\u05dc<\/tt> &#8220;\u05db\u05e4\u05d5\u05e3 \u05d9\u05e7\u05e0\u05d4 \u05dc\u05da \u05d4\u05d9\u05d0 \u05d4\u05d4\u05d2\u05d1\u05dc\u05d4 \u05e9\u05e8\u05e7 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05e2\u05dc \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d9\u05db\u05d5\u05dc \u05dc\u05e9\u05de\u05e9 \u05db\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2.\u00a0 \u05d5\u05d0\u05e4\u05d9\u05dc\u05d5 \u05d6\u05d4 \u05dc\u05d0 \u05de\u05d5\u05d1\u05df \u05dc\u05e2\u05ea\u05d9\u05dd \u05e7\u05e8\u05d5\u05d1\u05d5\u05ea.\u00a0 \u05d6\u05d4 \u05dc\u05d0 \u05d4\u05d9\u05d4 \u05d0\u05d5\u05de\u05e8 \u05d0\u05ea \u05d6\u05d4 <tt> class Box&lt;T super Number&gt; {...}<\/tt> \u05de\u05db\u05d9\u05dc \u05e8\u05e7 \u05de\u05e7\u05e8\u05d9\u05dd \u05e9\u05dc \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05e2\u05dc \u05e9\u05dc <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> .\u00a0 \u05dc\u05d4\u05e4\u05da &#8211; \u05db\u05e4\u05d9 \u05e9\u05de\u05d3\u05d2\u05d9\u05de\u05d4 \u05d4\u05d3\u05d5\u05d2\u05de\u05d4 \u05dc\u05de\u05d8\u05d4!<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d1\u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 &#8211; <i> \u05dc\u05b4\u05e4\u05e0\u05b5\u05d9<\/i> \u05e1\u05d5\u05d2 \u05de\u05d7\u05d9\u05e7\u05d4):<\/p>\n<div style=\"margin-left:40px;\">\n<blockquote><p><tt> \u05de\u05d7\u05dc\u05e7\u05d4 Box&lt;<b> \u05de\u05e1\u05e4\u05e8 T \u05e1\u05d5\u05e4\u05e8<\/b> &gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> \u05d8<\/b> \u05e2\u05b5\u05e8\u05b6\u05da;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05ea\u05d9\u05d1\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> \u05d8<\/b> t) { value = t; }<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<\/div>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d2\u05d1\u05d5\u05dc \u05e2\u05dc\u05d9\u05d5\u05df \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d1\u05de\u05d7\u05d9\u05e7\u05ea \u05e1\u05d5\u05d2 &#8211; <i> \u05dc\u05b0\u05d0\u05b7\u05d7\u05b7\u05e8<\/i> \u05e1\u05d5\u05d2 \u05de\u05d7\u05d9\u05e7\u05d4):<\/p>\n<div style=\"margin-left:40px;\">\n<blockquote><p><tt> class Box {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/b> \u05e2\u05b5\u05e8\u05b6\u05da;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05ea\u05d9\u05d1\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/b> t) { value = t; }<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<\/div>\n<p>\u05d0 <tt> \u05de\u05d7\u05dc\u05e7\u05d4 Box&lt;T <b> \u05d2\u05b8\u05d3\u05d5\u05b9\u05dc<\/b> Number&gt; {...} <\/tt> \u05d9\u05ea\u05d5\u05e8\u05d2\u05dd \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e1\u05d5\u05d2 \u05de\u05d7\u05d9\u05e7\u05d4 \u05dc-a <tt> \u05e7\u05d5\u05bc\u05e4\u05e1\u05b8\u05d4<\/tt> \u05d4\u05de\u05db\u05d9\u05dc <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d4\u05e9\u05d3\u05d4 \u05d5\u05d4\u05e7\u05d5\u05e0\u05e1\u05d8\u05e8\u05d5\u05e7\u05d8\u05d5\u05e8 \u05e9\u05dc\u05d5 \u05d9\u05ea\u05d5\u05e8\u05d2\u05de\u05d5 \u05dc <tt> Box(Object t)<\/tt> . \u05d6\u05d4 \u05e9\u05d5\u05e0\u05d4 \u05de\u05d4\u05d5\u05ea\u05d9\u05ea \u05de\u05d0 <tt> \u05de\u05d7\u05dc\u05e7\u05d4 Box&lt;T <b> \u05de\u05e9\u05ea\u05e8\u05e2<\/b> Number&gt; {...}<\/tt> , \u05e9\u05d9\u05ea\u05d5\u05e8\u05d2\u05dd \u05dc\u05d0 <tt> \u05e7\u05d5\u05bc\u05e4\u05e1\u05b8\u05d4<\/tt> \u05d4\u05de\u05db\u05d9\u05dc \u05d0 <tt> \u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8<\/tt> \u05d4\u05e9\u05d3\u05d4 \u05d5\u05d4\u05e7\u05d5\u05e0\u05e1\u05d8\u05e8\u05d5\u05e7\u05d8\u05d5\u05e8 \u05e9\u05dc\u05d5 \u05d9\u05ea\u05d5\u05e8\u05d2\u05de\u05d5 \u05dc <tt> \u05ea\u05d9\u05d1\u05d4 (\u05de\u05e1\u05e4\u05e8 t)<\/tt> . \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 \u05de\u05db\u05da, \u05d0 <tt> Box&lt;Number&gt;<\/tt> \u05de\u05d5\u05e4\u05e2 \u05de\u05ea\u05d5\u05da \u05d0<tt> class Box&lt;T \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea Number&gt; {...}<\/tt> \u05d9\u05d4\u05d9\u05d4 \u05e9\u05d5\u05e0\u05d4 \u05de\u05d0 <tt> Box&lt;Number&gt;<\/tt> \u05de\u05d5\u05e4\u05e2 \u05de\u05d0 <tt> class Box&lt;T super Number&gt; {...}<\/tt> , \u05de\u05d4 \u05e9\u05e2\u05dc\u05d5\u05dc \u05dc\u05d2\u05e8\u05d5\u05dd \u05dc\u05d1\u05dc\u05d1\u05d5\u05dc.\u00a0 \u05de\u05e1\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e0\u05de\u05d5\u05db\u05d9\u05dd \u05d0\u05d9\u05e0\u05dd \u05d4\u05d2\u05d9\u05d5\u05e0\u05d9\u05d9\u05dd \u05d1\u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05e1\u05d5\u05d2 \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05d5\u05ea.<\/p>\n<p>&nbsp;<\/p>\n<hr width=\"100%\" \/>\n<p>&nbsp;<\/p>\n<p><b>\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05d2\u05d1\u05d5\u05dc \u05ea\u05d7\u05ea\u05d5\u05df \u05e9\u05dc \u05e9\u05d9\u05d8\u05d5\u05ea<\/b><\/p>\n<p>\u05d1\u05e9\u05d9\u05dc\u05d5\u05d1 \u05e2\u05dd \u05e9\u05d9\u05d8\u05d5\u05ea \u05d5\u05e1\u05d5\u05d2\u05d9 \u05d4\u05d0\u05e8\u05d2\u05d5\u05de\u05e0\u05d8\u05d9\u05dd \u05e9\u05dc\u05d4\u05df, \u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05e2\u05dd \u05d2\u05d1\u05d5\u05dc \u05ea\u05d7\u05ea\u05d5\u05df \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05e9\u05d9\u05de\u05d5\u05e9\u05d9 \u05de\u05d3\u05d9 \u05e4\u05e2\u05dd.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05d8\u05d4 \u05e9\u05ea\u05e4\u05d9\u05e7 \u05ea\u05d5\u05e2\u05dc\u05ea \u05de\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05e2\u05dd \u05d2\u05d1\u05d5\u05dc \u05ea\u05d7\u05ea\u05d5\u05df):<\/p>\n<blockquote><p><tt> class Pair&lt;X,Y&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05e8\u05d8\u05d9 X \u05e8\u05d0\u05e9\u05d5\u05df;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05e8\u05d8\u05d9 Y \u05e9\u05e0\u05d9;<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> \u00a0\u00a0 &lt; \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9<b> \u05e1\u05d5\u05e4\u05e8 X<\/b> ,<b> \u05d1 \u05e1\u05d5\u05e4\u05e8 Y<\/b> &gt; B addToMap(Map&lt;A,B&gt; map) {\/\/ \u05e9\u05d2\u05d9\u05d0\u05d4: \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05d1\u05e2\u05dc \u05d2\u05d1\u05d5\u05dc \u05e0\u05de\u05d5\u05da \u05d9\u05d5\u05ea\u05e8<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return map.put(first, second);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u05de\u05d1\u05d7\u05df \u05db\u05d9\u05ea\u05d4 {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public static void main(String[] args) {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Pair&lt;String,Long&gt; pair = New Pair&lt;&gt;(\"ABC\",42L);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Map&lt;CharSequence, \u05de\u05e4\u05ea Number&gt; = HashMap&lt;CharSequence, Number&gt;();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05de\u05e1\u05e4\u05e8 \u05de\u05e1\u05e4\u05e8 = pair.addToMap(map);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4 <tt> addToMap()<\/tt> \u05d4\u05e9\u05d9\u05d8\u05d4 \u05de\u05d5\u05e1\u05d9\u05e4\u05d4 \u05d0\u05ea \u05d4\u05ea\u05d5\u05db\u05df \u05e9\u05dc \u05d4\u05d6\u05d5\u05d2 \u05dc\u05de\u05e4\u05d4.\u00a0 \u05db\u05dc \u05de\u05e4\u05d4 \u05e9\u05d9\u05db\u05d5\u05dc\u05d4 \u05dc\u05d4\u05d7\u05d6\u05d9\u05e7 \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05e2\u05dc \u05e9\u05dc <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> \u05d9\u05e2\u05e9\u05d4.\u00a0 \u05e9\u05dc \u05d4\u05de\u05e4\u05d4 <tt> \u05dc\u05b8\u05e9\u05c2\u05b4\u05d9\u05dd()<\/tt> \u05d4\u05e9\u05d9\u05d8\u05d4 \u05de\u05d7\u05d6\u05d9\u05e8\u05d4 \u05d0\u05ea \u05d4\u05e2\u05e8\u05da \u05e9\u05e0\u05de\u05e6\u05d0 \u05d1\u05de\u05e4\u05d4 \u05e2\u05d1\u05d5\u05e8 \u05d4\u05de\u05e4\u05ea\u05d7 \u05d4\u05e0\u05ea\u05d5\u05df, \u05d0\u05dd \u05db\u05d1\u05e8 \u05d9\u05e9 \u05e2\u05e8\u05da \u05de\u05e4\u05ea\u05d7-\u05e2\u05e8\u05da \u05e2\u05d1\u05d5\u05e8 \u05d4\u05de\u05e4\u05ea\u05d7 \u05d1\u05de\u05e4\u05d4.\u00a0 \u05e2\u05e8\u05da \u05d4\u05d4\u05d7\u05d6\u05e8 \u05e9\u05dc \u05d4\u05de\u05e4\u05d4 <tt> \u05dc\u05b8\u05e9\u05c2\u05b4\u05d9\u05dd()<\/tt> \u05d4\u05e9\u05d9\u05d8\u05d4 \u05ea\u05d5\u05d7\u05d6\u05e8 \u05de\u05d4 <tt> addToMap()<\/tt> \u05e9\u05c1\u05b4\u05d9\u05d8\u05b8\u05d4.\u00a0 \u05d1\u05e0\u05e1\u05d9\u05d1\u05d5\u05ea \u05d0\u05dc\u05d4, \u05d9\u05e9 \u05dc\u05d4\u05db\u05e8\u05d9\u05d6 \u05e2\u05dc \u05d4\u05e9\u05d9\u05d8\u05d4 \u05db\u05e4\u05d9 \u05e9\u05de\u05d5\u05e6\u05d2 \u05dc\u05e2\u05d9\u05dc: \u05d4\u05de\u05e4\u05d4 \u05e2\u05d5\u05d1\u05e8\u05ea \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e2\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9-\u05e2\u05dc \u05e9\u05dc \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05d4\u05d6\u05d5\u05d2 \u05d5\u05d4- <tt> addToMap()<\/tt> \u05e1\u05d5\u05d2 \u05d4\u05d4\u05d7\u05d6\u05e8\u05d4 \u05e9\u05dc \u05d4\u05e9\u05d9\u05d8\u05d4 \u05d4\u05d5\u05d0 \u05e1\u05d5\u05d2 \u05d4\u05e2\u05e8\u05da \u05e9\u05dc \u05d4\u05de\u05e4\u05d4.<\/p>\n<p>\u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05e7\u05d5\u05de\u05e4\u05d9\u05d9\u05dc\u05e8 \u05d0\u05d9\u05e0\u05d5 \u05de\u05d0\u05e4\u05e9\u05e8 \u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05e0\u05de\u05d5\u05db\u05d9\u05dd \u05d9\u05d5\u05ea\u05e8 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05e9\u05dc \u05e1\u05d5\u05d2 \u05d0\u05e0\u05d5 \u05d6\u05e7\u05d5\u05e7\u05d9\u05dd \u05dc\u05e2\u05e7\u05d9\u05e4\u05d4.<\/p>\n<p>\u05e4\u05ea\u05e8\u05d5\u05df \u05d0\u05d7\u05d3 \u05e9\u05e2\u05d5\u05dc\u05d4 \u05e2\u05dc \u05d4\u05d3\u05e2\u05ea \u05d4\u05d5\u05d0 \u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd, \u05db\u05d9 \u05dc\u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05d9\u05d5\u05ea \u05d2\u05d1\u05d5\u05dc \u05e0\u05de\u05d5\u05da \u05d9\u05d5\u05ea\u05e8.\u00a0 \u05dc\u05d4\u05dc\u05df \u05e4\u05ea\u05e8\u05d5\u05df \u05e2\u05d5\u05e7\u05e3 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05ea\u05d5 \u05db\u05dc\u05dc\u05d9.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05d3\u05e8\u05da \u05e2\u05d1\u05d5\u05e8 \u05d4\u05d3\u05d5\u05d2\u05de\u05d4 \u05d4\u05e7\u05d5\u05d3\u05de\u05ea \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05ea\u05d5\u05d5\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd):<\/p>\n<blockquote><p><tt> class Pair&lt;X,Y&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05e8\u05d8\u05d9 X \u05e8\u05d0\u05e9\u05d5\u05df;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05e8\u05d8\u05d9 Y \u05e9\u05e0\u05d9;<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/b> addToMap(Map&lt;<b> ? \u05e1\u05d5\u05e4\u05e8 X<\/b> , <b> ? \u05e1\u05d5\u05e4\u05e8 Y<\/b> \u05de\u05e4\u05ea &gt;) {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return map.put(first, second);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u05de\u05d1\u05d7\u05df \u05db\u05d9\u05ea\u05d4 {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public static void main(String[] args) {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Pair&lt;String,Long&gt; pair = New Pair&lt;&gt;(\"ABC\",42L);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Map&lt;CharSequence, \u05de\u05e4\u05ea Number&gt; = HashMap&lt;CharSequence, Number&gt;();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05de\u05e1\u05e4\u05e8 \u05de\u05e1\u05e4\u05e8 = <b> (\u05de\u05b4\u05e1\u05e4\u05bc\u05b8\u05e8)<\/b> pair.addToMap(map);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d6\u05d4 \u05e2\u05d5\u05d1\u05d3, \u05d7\u05d5\u05e5 \u05de\u05d6\u05d4 \u05e9\u05d0\u05d9\u05df \u05d3\u05e8\u05da \u05dc\u05d4\u05e6\u05d4\u05d9\u05e8 \u05e2\u05dc \u05e1\u05d5\u05d2 \u05d4\u05d4\u05d7\u05d6\u05e8\u05d4 \u05db\u05e8\u05e6\u05d5\u05d9.\u00a0 \u05d6\u05d4 \u05d9\u05d4\u05d9\u05d4 \u05d8\u05d9\u05e4\u05d5\u05e1 \u05d4\u05e2\u05dc \u05e9\u05dc <tt> \u05d9<\/tt> \u05e9\u05d4\u05de\u05d4\u05d3\u05e8 \u05dc\u05d5\u05db\u05d3 \u05de\u05e1\u05d5\u05d2 \u05d4\u05de\u05e4\u05d4, \u05d0\u05d1\u05dc \u05d0\u05d9\u05df \u05ea\u05d7\u05d1\u05d9\u05e8 \u05dc\u05e6\u05d9\u05d5\u05df \u05d6\u05d4.\u00a0 \u05d0\u05e1\u05d5\u05e8 \u05dc\u05e0\u05d5 \u05dc\u05d4\u05db\u05e8\u05d9\u05d6 \u05e2\u05dc \u05e1\u05d5\u05d2 \u05d4\u05d4\u05d7\u05d6\u05e8\u05d4 \u05db&#8221;<tt> ? \u05e1\u05d5\u05e4\u05e8 Y<\/tt> &#8220;, \u05db\u05d9&#8221;<tt> ? \u05e1\u05d5\u05e4\u05e8 Y<\/tt> &#8221; \u05d4\u05d5\u05d0 \u05ea\u05d5 \u05db\u05dc\u05dc\u05d9 \u05d5\u05dc\u05d0 \u05e1\u05d5\u05d2 \u05d5\u05dc\u05db\u05df \u05d0\u05d9\u05e0\u05d5 \u05de\u05d5\u05ea\u05e8 \u05db\u05e1\u05d5\u05d2 \u05d4\u05d7\u05d6\u05e8\u05d4. \u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05d1\u05e8\u05d9\u05e8\u05d4 \u05d5\u05d7\u05d9\u05d9\u05d1\u05d9\u05dd \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05d1\u05de\u05e7\u05d5\u05dd \u05d6\u05d0\u05ea \u05db\u05e1\u05d5\u05d2 \u05d4\u05d4\u05d7\u05d6\u05e8\u05d4 \u05e9\u05dc \u05d4\u05e9\u05d9\u05d8\u05d4 \u05e9\u05dc\u05e0\u05d5.\u00a0 \u05e1\u05d5\u05d2 \u05d4\u05d7\u05d6\u05e8\u05d4 \u05d3\u05d9 \u05dc\u05d0 \u05e1\u05e4\u05e6\u05d9\u05e4\u05d9 \u05d6\u05d4 \u05de\u05d0\u05dc\u05e5 \u05d1\u05ea\u05d5\u05e8\u05d5 \u05de\u05ea\u05e7\u05e9\u05e8\u05d9\u05dd \u05e9\u05dc <tt> addToMap()<\/tt> \u05e9\u05d9\u05d8\u05d4 \u05dc\u05d4\u05e4\u05d9\u05dc \u05d0\u05ea \u05e2\u05e8\u05da \u05d4\u05d4\u05d7\u05d6\u05e8\u05d4 \u05de- <tt> \u05dc\u05b0\u05d4\u05b4\u05ea\u05b0\u05e0\u05b7\u05d2\u05b5\u05d3<\/tt> \u05dc\u05e1\u05d5\u05d2\u05d5 \u05d4\u05d0\u05de\u05d9\u05ea\u05d9.\u00a0 \u05d6\u05d4 \u05dc\u05d0 \u05d1\u05d3\u05d9\u05d5\u05e7 \u05de\u05d4 \u05e9\u05d7\u05e9\u05d1\u05e0\u05d5.<\/p>\n<p>\u05e2\u05e7\u05d9\u05e4\u05ea \u05d3\u05e8\u05da \u05e0\u05d5\u05e1\u05e4\u05ea \u05d4\u05d9\u05d0 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05e9\u05d9\u05d8\u05d5\u05ea \u05e1\u05d8\u05d8\u05d9\u05d5\u05ea.\u00a0 \u05d4\u05e0\u05d4 \u05e4\u05ea\u05e8\u05d5\u05df \u05e2\u05d5\u05e7\u05e3 \u05e2\u05dd \u05e9\u05d9\u05d8\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05ea.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05d3\u05e8\u05da \u05e2\u05d1\u05d5\u05e8 \u05d4\u05d3\u05d5\u05d2\u05de\u05d4 \u05d4\u05e7\u05d5\u05d3\u05de\u05ea \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05e9\u05d9\u05d8\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea):<\/p>\n<blockquote><p><tt> class Pair&lt;X,Y&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05e8\u05d8\u05d9 X \u05e8\u05d0\u05e9\u05d5\u05df;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05e8\u05d8\u05d9 Y \u05e9\u05e0\u05d9;<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> \u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> \u05e1\u05d8\u05b8\u05d8\u05b4\u05d9<\/b> &lt;<b> \u05d0<\/b> ,<b> \u05d1<\/b> ,X <b> \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d0<\/b> ,Y <b> \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d1<\/b> &gt; B addToMap(Pair&lt;X, Y&gt; pair, Map&lt;<b> \u05d0<\/b> ,<b> \u05d1<\/b> \u05de\u05e4\u05ea &gt;) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return map.put(pair.first,pair.second);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u05de\u05d1\u05d7\u05df \u05db\u05d9\u05ea\u05d4 {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public static void main(String[] args) {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Pair&lt;String,Long&gt; pair = New Pair&lt;&gt;(\"ABC\",42L);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Map&lt;CharSequence, \u05de\u05e4\u05ea Number&gt; = HashMap&lt;CharSequence, Number&gt;();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u05de\u05e1\u05e4\u05e8 \u05de\u05e1\u05e4\u05e8 = <b> \u05d6\u05d5\u05bc\u05d2<\/b> \u200e.addToMap(<b> \u05d6\u05d5\u05bc\u05d2<\/b> ,\u05de\u05b7\u05e4\u05bc\u05b8\u05d4);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05d2\u05e0\u05e8\u05d9 <tt> addToMap()<\/tt> \u05dc\u05e9\u05d9\u05d8\u05d4 \u05d9\u05e9 \u05d0\u05e8\u05d1\u05e2\u05d4 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2: \u05e9\u05e0\u05d9 \u05de\u05e6\u05d9\u05d9\u05e0\u05d9 \u05de\u05d9\u05e7\u05d5\u05dd <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> \u05e2\u05d1\u05d5\u05e8 \u05e1\u05d5\u05d2 \u05d4\u05d6\u05d5\u05d2 \u05d5\u05e9\u05e0\u05d9 \u05de\u05e6\u05d9\u05d9\u05e0\u05d9 \u05de\u05d9\u05e7\u05d5\u05dd <tt> \u05d0<\/tt> \u05d5 <tt> \u05d1 <\/tt> \u05dc\u05e1\u05d5\u05d2 \u05d4\u05de\u05e4\u05d4. <tt> \u05d0<\/tt> \u05d5 <tt> \u05d1<\/tt> \u05d4\u05dd \u05d8\u05d9\u05e4\u05d5\u05e1\u05d9 \u05e2\u05dc \u05e9\u05dc <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> , \u05db\u05d9 <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> \u00a0 \u05de\u05d5\u05e6\u05d4\u05e8\u05d9\u05dd \u05e2\u05dd <tt> \u05d0<\/tt> \u05d5 <tt> \u05d1<\/tt> \u05db\u05d2\u05d1\u05d5\u05dc\u05d5\u05ea \u05d4\u05e2\u05dc\u05d9\u05d5\u05e0\u05d9\u05dd \u05e9\u05dc\u05d4\u05dd. (\u05e9\u05d9\u05dd \u05dc\u05d1, \u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05d4\u05e9\u05d9\u05d8\u05d4 \u05d4\u05d2\u05e0\u05e8\u05d9\u05ea <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> \u05d0\u05d9\u05df \u05e9\u05d5\u05dd \u05e7\u05e9\u05e8 \u05dc <tt> \u05d6\u05d5\u05bc\u05d2<\/tt> \u05e9\u05dc \u05d4\u05db\u05d9\u05ea\u05d4 <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd.\u00a0 \u05d4\u05e9\u05de\u05d5\u05ea <tt> X<\/tt> \u05d5 <tt> \u05d9<\/tt> \u05e0\u05e2\u05e9\u05d4 \u05e9\u05d9\u05de\u05d5\u05e9 \u05d7\u05d5\u05d6\u05e8 \u05e2\u05d1\u05d5\u05e8 \u05d4\u05e9\u05d9\u05d8\u05d4 \u05d4\u05d2\u05e0\u05e8\u05d9\u05ea \u05db\u05d3\u05d9 \u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05d5\u05ea\u05dd \u05dc\u05d6\u05d9\u05d4\u05d5\u05d9 \u05d1\u05e7\u05dc\u05d5\u05ea \u05db\u05e4\u05e8\u05de\u05d8\u05e8\u05d9 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05d4\u05d6\u05d5\u05d2. \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05d0\u05e8\u05d1\u05e2\u05d4 \u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d2 \u05e0\u05d5\u05db\u05dc \u05dc\u05d4\u05db\u05e8\u05d9\u05d6 \u05e2\u05dc \u05e1\u05d5\u05d2 \u05d4\u05d4\u05d7\u05d6\u05e8 \u05d4\u05de\u05d3\u05d5\u05d9\u05e7 \u05db\u05e8\u05e6\u05d5\u05d9: \u05d4\u05d5\u05d0 \u05d6\u05d4\u05d4 \u05dc\u05e1\u05d5\u05d2 \u05d4\u05e2\u05e8\u05da \u05e9\u05dc \u05d4\u05de\u05e4\u05d4.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d1\u05d4\u05e7\u05e9\u05e8 \u05e1\u05d8\u05d8\u05d9 \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05d4 \u05d2\u05e0\u05e8\u05d9\u05ea):<\/p>\n<blockquote><p><tt> class SomeClass<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05de\u05d0\u05ea\u05d7\u05dc \u05e1\u05d8\u05d8\u05d9, \u05e9\u05d3\u05d4 \u05e1\u05d8\u05d8\u05d9, \u05e9\u05d9\u05d8\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea<\/i><br \/>\n<tt> \u00a0 <b> \u05e1\u05d8\u05b8\u05d8\u05b4\u05d9<\/b> {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05de\u05d1\u05d7\u05df &gt; = \u05d7\u05d3\u05e9 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> &gt;(); <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> \u05e1\u05d8\u05b8\u05d8\u05b4\u05d9<\/b> <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> globalInfo;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9\u00a0 <b> \u05e1\u05d8\u05b8\u05d8\u05b4\u05d9<\/b> <b> <span style=\"color:#000099;\"> \u05d8 <\/span> <\/b> getGlobalInfo() {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 globalInfo;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05d0\u05ea\u05d7\u05d5\u05dc \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9, \u05e9\u05d3\u05d4 \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9, \u05e9\u05d9\u05d8\u05d4 \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05ea<\/i><br \/>\n<tt> \u00a0 {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05de\u05d1\u05d7\u05df &gt; = \u05d7\u05d3\u05e9 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> &gt;();<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> localInfo;<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getLocalInfo() {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 localInfo;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05e1\u05d5\u05d2\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd<\/i><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> \u05e1\u05d8\u05b8\u05d8\u05b4\u05d9<\/b> <b> \u05de\u05b7\u05d7\u05dc\u05b8\u05e7\u05b8\u05d4<\/b> \u05db\u05d9\u05e9\u05dc\u05d5\u05df \u05de\u05e8\u05d7\u05d9\u05d1 \u05d0\u05ea \u05d4\u05d7\u05e8\u05d9\u05d2\u05d4 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05de\u05d9\u05d3\u05e2;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05db\u05d9\u05e9\u05dc\u05d5\u05df \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9(<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> t) { info = t; }\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getInfo() { return info; }\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> \u05de\u05b4\u05de\u05b0\u05e9\u05c1\u05b8\u05e7<\/b> \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e2\u05ea\u05e7\u05d4 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05dc\u05b0\u05d4\u05b7\u05e2\u05b0\u05ea\u05b4\u05d9\u05e7();\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> enum<\/b> \u05de\u05d3\u05d9\u05e0\u05d4 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05ea\u05e7\u05e3, \u05dc\u05d0 \u05ea\u05e7\u05e3;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05de\u05d9\u05d3\u05e2; \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public void setInfo(<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> t) { info = t; } <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getInfo() { return info; }\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05e1\u05d5\u05d2\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd<\/i><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> \u05de\u05b7\u05d7\u05dc\u05b8\u05e7\u05b8\u05d4<\/b> \u05d0\u05d1\u05d9\u05d6\u05e8 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getInfo() { return localInfo; }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05d3\u05d5\u05d2\u05de\u05d4 \u05de\u05de\u05d7\u05d9\u05e9\u05d4 \u05e9\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d1\u05d4\u05e7\u05e9\u05e8 \u05e1\u05d8\u05d8\u05d9 \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05d4 \u05d2\u05e0\u05e8\u05d9\u05ea.\u00a0 \u05d6\u05d4 \u05d2\u05dd \u05de\u05e8\u05d0\u05d4 \u05e9\u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05d5\u05e1\u05d5\u05d2\u05d9 enum \u05e0\u05d7\u05e9\u05d1\u05d9\u05dd \u05dc\u05d7\u05d1\u05e8\u05d9 \u05e1\u05d5\u05d2 \u05e1\u05d8\u05d8\u05d9 \u05e9\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d4.\u00a0 \u05e8\u05e7 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05de\u05d9\u05d5\u05ea, \u05db\u05dc\u05d5\u05de\u05e8 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05de\u05e7\u05d5\u05e0\u05e0\u05d5\u05ea \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05d5\u05ea, \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05d2\u05e0\u05e8\u05d9\u05ea \u05d4\u05de\u05e7\u05d9\u05e4\u05d4.<\/p>\n<p>\u05d4\u05d9\u05e7\u05e3 \u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05de\u05de\u05e9\u05e7 \u05d4\u05d5\u05d0 \u05db\u05dc \u05d4\u05d4\u05d2\u05d3\u05e8\u05d4 \u05e9\u05dc \u05d4\u05de\u05de\u05e9\u05e7, \u05dc\u05de\u05e2\u05d8 \u05db\u05dc \u05e9\u05d3\u05d5\u05ea \u05d0\u05d5 \u05e1\u05d5\u05d2\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd.\u00a0 \u05d4\u05e1\u05d9\u05d1\u05d4 \u05dc\u05db\u05da \u05d4\u05d9\u05d0 \u05e9\u05e9\u05d3\u05d5\u05ea \u05d5\u05e1\u05d5\u05d2\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05d4\u05de\u05d5\u05d2\u05d3\u05e8\u05d9\u05dd \u05d1\u05de\u05de\u05e9\u05e7 \u05d4\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05d1\u05d0\u05d5\u05e4\u05df \u05de\u05e8\u05d5\u05de\u05d6.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e9\u05d9\u05de\u05d5\u05e9 \u05dc\u05d0 \u05d7\u05d5\u05e7\u05d9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05e1\u05d5\u05d2 \u05d1\u05de\u05de\u05e9\u05e7 \u05d2\u05e0\u05e8\u05d9):<\/p>\n<blockquote><p><tt> \u05de\u05de\u05e9\u05e7 SomeInterface<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05e9\u05c2\u05b8\u05d3\u05b6\u05d4<\/i><br \/>\n<tt> \u00a0 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05e2\u05e8\u05da &gt; = \u05d7\u05d3\u05e9 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> &gt;();\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05e1\u05d5\u05d2 \u05de\u05e7\u05d5\u05e0\u05df<\/i><br \/>\n<tt> \u00a0 <b> \u05de\u05b7\u05d7\u05dc\u05b8\u05e7\u05b8\u05d4<\/b> \u05d0\u05d1\u05d9\u05d6\u05e8 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8 <\/span> <\/b> getInfo() {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u05e9\u05d2\u05d9\u05d0\u05d4<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return value.getGlobalInfo();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u05e9\u05d9\u05d8\u05d5\u05ea<\/i><br \/>\n<tt> \u00a0 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getValue();<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d4\u05d3\u05d5\u05d2\u05de\u05d4 \u05de\u05e8\u05d0\u05d4 \u05e9\u05e9\u05d3\u05d5\u05ea \u05e9\u05dc \u05de\u05de\u05e9\u05e7 \u05d4\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05d1\u05d0\u05d5\u05e4\u05df \u05de\u05e8\u05d5\u05de\u05d6, \u05db\u05da \u05e9\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05d1\u05e9\u05d5\u05dd \u05de\u05e7\u05d5\u05dd \u05d1\u05d4\u05e6\u05d4\u05e8\u05d4 \u05e2\u05dc \u05e9\u05d3\u05d4 \u05e9\u05dc \u05de\u05de\u05e9\u05e7 \u05d2\u05e0\u05e8\u05d9.\u00a0 \u05d1\u05d0\u05d5\u05e4\u05df \u05d3\u05d5\u05de\u05d4, \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05de\u05e7\u05d5\u05e0\u05e0\u05ea \u05e0\u05d7\u05e9\u05d1\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d4 \u05de\u05e7\u05d5\u05e0\u05e0\u05ea \u05e1\u05d8\u05d8\u05d9\u05ea, \u05dc\u05d0 \u05dc\u05de\u05d7\u05dc\u05e7\u05d4 \u05e4\u05e0\u05d9\u05de\u05d9\u05ea, \u05d5\u05de\u05e1\u05d9\u05d1\u05d4 \u05d6\u05d5 \u05d4\u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 type \u05d1\u05db\u05dc \u05de\u05e7\u05d5\u05dd \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05de\u05e7\u05d5\u05e0\u05e0\u05ea \u05d0\u05d9\u05e0\u05d5 \u05d7\u05d5\u05e7\u05d9.<\/p>\n<p><b> <i> \u05d3\u05e8\u05da \u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05d5\u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd:<\/i> <\/b><\/p>\n<p>\u05d1\u05de\u05e7\u05e8\u05d4 \u05e9\u05dc \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05d5\u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05e1\u05d8\u05d8\u05d9\u05d9\u05dd \u05d6\u05d4 \u05dc\u05d0 \u05d0\u05e1\u05d5\u05df \u05d2\u05d3\u05d5\u05dc.\u00a0 \u05db\u05e4\u05ea\u05e8\u05d5\u05df \u05e2\u05d5\u05e7\u05e3 \u05d0\u05e0\u05d5 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d9\u05e6\u05d5\u05e8 \u05d0\u05ea \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05e1\u05d8\u05d8\u05d9\u05ea \u05d0\u05d5 \u05d4\u05de\u05de\u05e9\u05e7 \u05e2\u05e6\u05de\u05d5.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 &#8211; \u05e6\u05d5\u05e8 \u05d0\u05ea \u05d4\u05e1\u05d5\u05d2 \u05d4\u05e1\u05d8\u05d8\u05d9 \u05d4\u05de\u05e7\u05d5\u05e0\u05df):<\/p>\n<blockquote><p><tt> \u05e2\u05d8\u05d9\u05e4\u05d4 \u05d1\u05db\u05d9\u05ea\u05d4<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8;<\/tt><\/p><\/blockquote>\n<blockquote><p><tt> \u00a0 \u05e2\u05d8\u05d9\u05e4\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> t) { theObject = t; }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getWrapper() { return theObject; }<\/tt><tt> \u00a0 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05d1\u05dc\u05ea\u05d9 \u05de\u05e9\u05ea\u05e0\u05d4<b> &lt;T&gt;<\/b> makeImmutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05dc\u05d4\u05d7\u05d6\u05d9\u05e8 \u05dc\u05dc\u05d0 \u05e9\u05d9\u05e0\u05d5\u05d9<b> &lt;T&gt;<\/b> (\u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 Public Mutable<b> &lt;T&gt;<\/b> makeMutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05dc\u05d4\u05d7\u05d6\u05d9\u05e8 Mutable \u05d7\u05d3\u05e9<b> &lt;T&gt;<\/b> (\u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 \u05e1\u05d8\u05d8\u05d9 &lt;A&gt; A makeClone(A theObject) { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d5\u05e4\u05d9\u05ea \u05e1\u05d8\u05d8\u05d9\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea \u05d1\u05dc\u05ea\u05d9 \u05e0\u05d9\u05ea\u05e0\u05ea \u05dc\u05e9\u05d9\u05e0\u05d5\u05d9<b> &lt;A&gt;<\/b> { <b> \/\/ \u05d4\u05d5\u05d0 \u05de\u05d7\u05dc\u05e7\u05d4 \u05d2\u05e0\u05e8\u05d9\u05ea \u05db\u05e2\u05ea<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 <b> \u05d0<\/b> \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8;<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05d1\u05dc\u05ea\u05d9 \u05de\u05e9\u05ea\u05e0\u05d4(<b> \u05d0<\/b> arg) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 theObject = makeClone(arg);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> \u05d0<\/b> getWrappedItem() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 makeClone(theObject);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea \u05e0\u05d9\u05ea\u05df \u05dc\u05e9\u05d9\u05e0\u05d5\u05d9<b> &lt;A&gt;<\/b> {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ... \u05d3\u05d5\u05de\u05d4 ...<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05d0\u05d9\u05df \u05d3\u05e8\u05da \u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 \u05e2\u05d1\u05d5\u05e8 \u05e1\u05d5\u05d2\u05d9 enum \u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05d4\u05dd \u05dc\u05d0 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05d2\u05e0\u05e8\u05d9\u05d9\u05dd.<\/p>\n<p><b> <i> \u05d3\u05e8\u05da \u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e1\u05d8\u05d8\u05d9\u05d5\u05ea \u05de\u05e7\u05d5\u05e0\u05e0\u05d5\u05ea:<\/i> <\/b><\/p>\n<p>\u05d0\u05dd \u05d4\u05e1\u05d5\u05d2 \u05d4\u05e1\u05d8\u05d8\u05d9 \u05d4\u05de\u05e7\u05d5\u05e0\u05df \u05d4\u05d5\u05d0 \u05de\u05d7\u05dc\u05e7\u05d4, \u05e4\u05ea\u05e8\u05d5\u05df \u05d7\u05dc\u05d5\u05e4\u05d9 \u05d9\u05d4\u05d9\u05d4 \u05d4\u05e4\u05d9\u05db\u05ea \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05e1\u05d8\u05d8\u05d9\u05ea \u05dc\u05de\u05d7\u05dc\u05e7\u05d4 \u05e4\u05e0\u05d9\u05de\u05d9\u05ea \u05dc\u05d0 \u05e1\u05d8\u05d8\u05d9\u05ea.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05dc\u05e2\u05e7\u05d9\u05e4\u05ea \u05d4\u05d1\u05e2\u05d9\u05d4 &#8211; \u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05de\u05d7\u05dc\u05e7\u05d4 \u05e4\u05e0\u05d9\u05de\u05d9\u05ea):<\/p>\n<blockquote><p><tt> \u05e2\u05d8\u05d9\u05e4\u05d4 \u05d1\u05db\u05d9\u05ea\u05d4<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8;<\/tt><\/p><\/blockquote>\n<blockquote><p><tt> \u00a0 \u05e2\u05d8\u05d9\u05e4\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> t) { theObject = t; }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getWrapper() { return theObject; }<\/tt><tt> \u00a0 public Mutable makeMutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05dc\u05b7\u05d7\u05b2\u05d6\u05d5\u05b9\u05e8 <b> \u05d6\u05b6\u05d4.<\/b> new Mutable(theObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 public Immutable makeImmutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05dc\u05b7\u05d7\u05b2\u05d6\u05d5\u05b9\u05e8 <b> \u05d6\u05b6\u05d4.<\/b> new Immutable(theObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 \u05e1\u05d8\u05d8\u05d9 &lt;A&gt; A makeClone(A theObject) { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d5\u05e4\u05d9\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea \u05dc\u05dc\u05d0 \u05e9\u05d9\u05e0\u05d5\u05d9 {\u00a0 <b> \/\/ \u05d0\u05d9\u05e0\u05d5 \u05e2\u05d5\u05d3 \u05de\u05d7\u05dc\u05e7\u05d4 \u05e1\u05d8\u05d8\u05d9\u05ea<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 <b> \u05d8<\/b> \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8;<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05d1\u05dc\u05ea\u05d9 \u05de\u05e9\u05ea\u05e0\u05d4(<b> \u05d8<\/b> arg) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 theObject = makeClone(arg);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> \u05d8<\/b> getWrappedItem() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 makeClone(theObject);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05de\u05e2\u05de\u05d3 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05e0\u05d9\u05ea\u05df \u05dc\u05e9\u05d9\u05e0\u05d5\u05d9\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ... \u05d3\u05d5\u05de\u05d4 ...<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05e4\u05ea\u05e8\u05d5\u05df \u05d6\u05d4 \u05de\u05d2\u05d9\u05e2 \u05e2\u05dd \u05db\u05de\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05de\u05ea \u05e9\u05dc \u05ea\u05e7\u05d5\u05e8\u05d4 \u05de\u05db\u05d9\u05d5\u05d5\u05df \u05e9\u05dc\u05db\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05d4\u05e4\u05e0\u05d9\u05de\u05d9\u05d5\u05ea \u05d9\u05e9 \u05d4\u05ea\u05d9\u05d9\u05d7\u05e1\u05d5\u05ea \u05e0\u05e1\u05ea\u05e8\u05ea \u05dc\u05de\u05d5\u05e4\u05e2 \u05de\u05d4\u05e1\u05d5\u05d2 \u05d4\u05d7\u05d9\u05e6\u05d5\u05e0\u05d9, \u05e9\u05d1\u05d3\u05d5\u05d2\u05de\u05d4 \u05d6\u05d5 \u05d4\u05dd \u05dc\u05d0 \u05e6\u05e8\u05d9\u05db\u05d9\u05dd \u05d5\u05dc\u05d0 \u05de\u05e0\u05e6\u05dc\u05d9\u05dd \u05d0\u05d5\u05ea\u05d5; \u05d4\u05d4\u05ea\u05d9\u05d9\u05d7\u05e1\u05d5\u05ea \u05d4\u05e0\u05e1\u05ea\u05e8\u05ea \u05d4\u05d9\u05d0 \u05e8\u05e7 \u05de\u05d8\u05e2\u05df.\u00a0 \u05dc\u05e2\u05ea\u05d9\u05dd \u05e7\u05e8\u05d5\u05d1\u05d5\u05ea, \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05e4\u05e0\u05d9\u05de\u05d9\u05d5\u05ea \u05de\u05e9\u05d5\u05dc\u05d1\u05d5\u05ea \u05e2\u05dd \u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05e2\u05dc \u05de\u05e0\u05ea \u05dc\u05e9\u05de\u05d5\u05e8 \u05e2\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05e4\u05e0\u05d9\u05de\u05d9\u05ea \u05e4\u05e8\u05d8 \u05d9\u05d9\u05e9\u05d5\u05dd \u05e4\u05e8\u05d8\u05d9 \u05e9\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05de\u05e7\u05d9\u05e4\u05d4.\u00a0 \u05d0\u05e0\u05d7\u05e0\u05d5 \u05d9\u05db\u05d5\u05dc\u05d9\u05dd \u05dc\u05e2\u05e9\u05d5\u05ea \u05d0\u05ea \u05d0\u05d5\u05ea\u05d5 \u05d4\u05d3\u05d1\u05e8 \u05db\u05d0\u05df.<\/p>\n<p>\u05d3\u05d5\u05d2\u05de\u05d4 (\u05d4\u05e4\u05ea\u05e8\u05d5\u05df \u05d4\u05e7\u05d5\u05d3\u05dd \u05e9\u05d5\u05db\u05dc\u05dc):<\/p>\n<blockquote><p><tt> \u05e2\u05d8\u05d9\u05e4\u05d4 \u05d1\u05db\u05d9\u05ea\u05d4<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> \u05d4\u05d0\u05d5\u05d1\u05d9\u05d9\u05e7\u05d8;<\/tt><\/p><\/blockquote>\n<blockquote><p><tt> \u00a0 \u05e2\u05d8\u05d9\u05e4\u05d4 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea(<b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> t) { theObject = t; }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05bc\u05d5\u05bc\u05de\u05b0\u05d1\u05bc\u05b5\u05d9 <b> <span style=\"color:#000099;\"> \u05d8<\/span> <\/b> getWrapper() { return theObject; }<\/tt><tt> \u00a0 Public Mutable<b> &lt;T&gt;<\/b> makeMutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 \u05d0\u05ea this.new Mutable(theObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 \u05d1\u05dc\u05ea\u05d9 \u05de\u05e9\u05ea\u05e0\u05d4<b> &lt;T&gt;<\/b> makeImmutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return this.new Immutable(theObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u05e4\u05e8\u05d8\u05d9 \u05e1\u05d8\u05d8\u05d9 &lt;A&gt; A makeClone(A theObject) { ... }<\/tt><\/p>\n<p><tt> \u00a0 <b> \u05de\u05de\u05e9\u05e7 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <\/b> Immutable&lt;S&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 S getWrappedItem();<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 <b> \u05de\u05de\u05e9\u05e7 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 <\/b> Mutable&lt;S&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 S getWrappedItem();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 void setWrappedItem(S arg);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 <b> \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9<\/b> \u05de\u05d7\u05dc\u05e7\u05d4 \u05d0\u05d7\u05e8\u05d5\u05e0\u05d4 ImmutableImplementation <b> \u05de\u05d9\u05d9\u05e9\u05de\u05ea Immutable&lt;T&gt;<\/b> {\u00a0<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u05d2\u05de\u05e8 \u05e4\u05e8\u05d8\u05d9 T theObject;<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0 public ImmutableImplementation(T arg) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 theObject = makeClone(arg);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 public T getWrappedItem() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u05d4\u05d7\u05d6\u05e8 makeClone(theObject);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 <b> \u05e4\u05bc\u05b0\u05e8\u05b8\u05d8\u05b4\u05d9<\/b> \u05de\u05d7\u05dc\u05e7\u05d4 MutableImplementation <b> \u05de\u05d9\u05d9\u05e9\u05de\u05ea Mutable&lt;T&gt;<\/b> {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ... \u05d3\u05d5\u05de\u05d4 ...<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u05db\u05e4\u05d9 \u05e9\u05d0\u05ea\u05d4 \u05d9\u05db\u05d5\u05dc \u05dc\u05e8\u05d0\u05d5\u05ea, \u05d4\u05de\u05de\u05e9\u05e7\u05d9\u05dd \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05d9\u05dd \u05d4\u05de\u05e7\u05d5\u05e0\u05e0\u05d9\u05dd \u05e6\u05e8\u05d9\u05db\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05d2\u05e0\u05e8\u05d9\u05d9\u05dd \u05d1\u05e2\u05d5\u05d3 \u05e9\u05d4\u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05d4\u05e4\u05e8\u05d8\u05d9\u05d5\u05ea \u05d4\u05e4\u05e0\u05d9\u05de\u05d9\u05d5\u05ea \u05d9\u05db\u05d5\u05dc\u05d5\u05ea \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05e1\u05d5\u05d2 \u05e9\u05dc \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05d4\u05de\u05e7\u05d9\u05e4\u05d4.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<table width=\"100%\" cellpadding=\"10\">\n<tbody>\n<tr valign=\"TOP\">\n<td colspan=\"2\" width=\"68%\"><b>\u00a0<\/b><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u05d0\u05e0\u05d0 \u05e2\u05d9\u05d9\u05df \u05d1\u05e9\u05d0\u05dc\u05d5\u05ea \u05d4\u05e0\u05e4\u05d5\u05e6\u05d5\u05ea \u05d4\u05dc\u05dc\u05d5 \u05dc\u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3: <a href=\"http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1\" rel=\"nofollow\">http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1<\/a> \u05d4\u05e0\u05d4 \u05db\u05de\u05d4 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05d7\u05e9\u05d5\u05d1\u05d5\u05ea \u05de\u05ea\u05d5\u05da \u05e9\u05d0\u05dc\u05d5\u05ea \u05e0\u05e4\u05d5\u05e6\u05d5\u05ea \u05d6\u05d4. example (\u05de\u05e1\u05d5\u05d2 \u05d2\u05e0\u05e8\u05d9): class Pair&lt;X,Y&gt; {\u00a0 \u00a0\u05e4\u05e8\u05d8\u05d9 X \u05e8\u05d0\u05e9\u05d5\u05df; \u00a0 \u05e4\u05e8\u05d8\u05d9 Y \u05e9\u05e0\u05d9; \u00a0 \u05d6\u05d5\u05d2 \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9 (X a1, Y a2) { \u00a0\u00a0\u00a0 rishon = a1; \u00a0\u00a0\u00a0 \u05e9\u05e0\u05d9 = a2; \u00a0 } \u00a0 public X getFirst() { return [&hellip;]<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Generics in short form","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1017],"tags":[18369,2549795,6280762],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-java","tag-18369","tag-java","tag-6280762"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-v","jetpack-related-posts":[{"id":2532,"url":"https:\/\/vkrastev1blog.com\/2026\/10\/02\/%d0%b2%d1%82%d0%be%d1%80%d0%b8%d1%8f%d1%82-%d0%b2%d1%81%d0%b5%d0%bb%d0%b5%d0%bd%d1%81%d0%ba%d0%b8-%d1%81%d1%8a%d0%b1%d0%be%d1%80-%d0%b2-%d0%ba%d0%be%d0%bd%d1%81%d1%82%d0%b0%d0%bd%d1%82%d0%b8%d0%bd\/","url_meta":{"origin":31,"position":0},"title":"\u05d4\u05de\u05d5\u05e2\u05e6\u05d4 \u05d4\u05d0\u05e7\u05d5\u05de\u05e0\u05d9\u05ea \u05d4\u05e9\u05e0\u05d9\u05d9\u05d4 \u05d1\u05e7\u05d5\u05e0\u05e1\u05d8\u05e0\u05d8\u05d9\u05e0\u05d5\u05e4\u05d5\u05dc (381) - \u05d0\u05d9\u05e9\u05d5\u05e8 \u05ea\u05d5\u05e8\u05ea \u05e8\u05d5\u05d7 \u05d4\u05e7\u05d5\u05d3\u05e9","author":"vkrastev2014","date":"02.10.2026","format":false,"excerpt":"\u0412\u0442\u043e\u0440\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440 \u0432 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u043f\u043e\u043b (381 \u0433.) \u2013 \u0443\u0442\u0432\u044a\u0440\u0436\u0434\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0443\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u0437\u0430 \u0421\u0432\u0435\u0442\u0438\u044f \u0414\u0443\u0445 \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430 \u0445\u0440\u0438\u0441\u0442\u0438\u044f\u043d\u0441\u0442\u0432\u043e\u0442\u043e \u2022 \u0412\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440\u0438 \u2022 IV \u0432\u0435\u043a \u0412\u0442\u043e\u0440\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440, \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d \u043f\u0440\u0435\u0437 381 \u0433. \u0432 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u043f\u043e\u043b, \u0435 \u0435\u0434\u043d\u043e \u043e\u0442 \u043d\u0430\u0439-\u0432\u0430\u0436\u043d\u0438\u0442\u0435 \u0441\u044a\u0431\u0438\u0442\u0438\u044f \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u0442\u0430 \u043d\u0430 \u0440\u0430\u043d\u043d\u043e\u0442\u043e \u0445\u0440\u0438\u0441\u0442\u0438\u044f\u043d\u0441\u0442\u0432\u043e. \u041d\u0430 \u043d\u0435\u0433\u043e \u0435 \u043f\u043e\u0442\u0432\u044a\u0440\u0434\u0435\u043d\u0430 \u041d\u0438\u043a\u0435\u0439\u0441\u043a\u0430\u0442\u0430 \u0432\u044f\u0440\u0430 \u043e\u0442 325\u2026","rel":"","context":"In &quot;\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3&quot;","block_context":{"text":"\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/ebtppy-v5hhqxqbousaxhde8pmrm8ky9vg5zhq_i42gf-itvech_wr25ui-u_ruov2gkqenknbbx2y7ekwwxzt8559wmlq424iif_pbcon6riek_ttdbxwp75aulyh3_naxhvg_pukcmdvjs88b30esv3xgtigs1gsziujd02gs.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/ebtppy-v5hhqxqbousaxhde8pmrm8ky9vg5zhq_i42gf-itvech_wr25ui-u_ruov2gkqenknbbx2y7ekwwxzt8559wmlq424iif_pbcon6riek_ttdbxwp75aulyh3_naxhvg_pukcmdvjs88b30esv3xgtigs1gsziujd02gs.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/ebtppy-v5hhqxqbousaxhde8pmrm8ky9vg5zhq_i42gf-itvech_wr25ui-u_ruov2gkqenknbbx2y7ekwwxzt8559wmlq424iif_pbcon6riek_ttdbxwp75aulyh3_naxhvg_pukcmdvjs88b30esv3xgtigs1gsziujd02gs.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/ebtppy-v5hhqxqbousaxhde8pmrm8ky9vg5zhq_i42gf-itvech_wr25ui-u_ruov2gkqenknbbx2y7ekwwxzt8559wmlq424iif_pbcon6riek_ttdbxwp75aulyh3_naxhvg_pukcmdvjs88b30esv3xgtigs1gsziujd02gs.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/ebtppy-v5hhqxqbousaxhde8pmrm8ky9vg5zhq_i42gf-itvech_wr25ui-u_ruov2gkqenknbbx2y7ekwwxzt8559wmlq424iif_pbcon6riek_ttdbxwp75aulyh3_naxhvg_pukcmdvjs88b30esv3xgtigs1gsziujd02gs.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/ebtppy-v5hhqxqbousaxhde8pmrm8ky9vg5zhq_i42gf-itvech_wr25ui-u_ruov2gkqenknbbx2y7ekwwxzt8559wmlq424iif_pbcon6riek_ttdbxwp75aulyh3_naxhvg_pukcmdvjs88b30esv3xgtigs1gsziujd02gs.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":2549,"url":"https:\/\/vkrastev1blog.com\/2026\/10\/02\/%d0%bf%d0%b5%d1%82%d0%b8%d1%8f%d1%82-%d0%b2%d1%81%d0%b5%d0%bb%d0%b5%d0%bd%d1%81%d0%ba%d0%b8-%d1%81%d1%8a%d0%b1%d0%be%d1%80-%d0%b2-%d0%ba%d0%be%d0%bd%d1%81%d1%82%d0%b0%d0%bd%d1%82%d0%b8%d0%bd%d0%be\/","url_meta":{"origin":31,"position":1},"title":"\u05d4\u05de\u05d5\u05e2\u05e6\u05d4 \u05d4\u05d0\u05e7\u05d5\u05de\u05e0\u05d9\u05ea \u05d4\u05d7\u05de\u05d9\u05e9\u05d9\u05ea \u05e9\u05dc \u05e7\u05d5\u05e0\u05e1\u05d8\u05e0\u05d8\u05d9\u05e0\u05d5\u05e4\u05d5\u05dc (553): \u05de\u05d7\u05dc\u05d5\u05e7\u05ea \u05e9\u05dc\u05d5\u05e9\u05ea \u05d4\u05e8\u05d0\u05e9\u05d9\u05dd, \u05de\u05d5\u05e8\u05e9\u05ea\u05d5 \u05d4\u05ea\u05d9\u05d0\u05d5\u05dc\u05d5\u05d2\u05d9\u05ea \u05e9\u05dc \u05db\u05dc\u05e7\u05d3\u05d5\u05df \u05d5\u05d4\u05e4\u05d5\u05dc\u05d9\u05d8\u05d9\u05e7\u05d4 \u05e9\u05dc \u05d4\u05e7\u05d9\u05e1\u05e8 \u05d9\u05d5\u05e1\u05d8\u05d9\u05e0\u05d9\u05d0\u05e0\u05d5\u05e1 \u05d4\u05e8\u05d0\u05e9\u05d5\u05df","author":"vkrastev2014","date":"02.10.2026","format":false,"excerpt":"\u041f\u0435\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440 \u0432 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u043f\u043e\u043b (553 \u0433.): \u0441\u043f\u043e\u0440\u044a\u0442 \u0437\u0430 \u201e\u0422\u0440\u0438\u0442\u0435 \u0433\u043b\u0430\u0432\u0438\u201c, \u0431\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u0441\u043a\u043e\u0442\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u043e \u043d\u0430 \u0425\u0430\u043b\u043a\u0438\u0434\u043e\u043d \u0438 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430\u0442\u0430 \u043d\u0430 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u042e\u0441\u0442\u0438\u043d\u0438\u0430\u043d I \u0420\u0435\u0437\u044e\u043c\u0435: \u041f\u0435\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440, \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043a\u0430\u0442\u043e \u0412\u0442\u043e\u0440\u0438\u044f \u0441\u044a\u0431\u043e\u0440 \u0432 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u043f\u043e\u043b, \u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0436\u0434\u0430 \u043f\u0440\u0435\u0437 553 \u0433. \u043f\u043e \u0432\u0440\u0435\u043c\u0435 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u0442\u043e \u043d\u0430 \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u042e\u0441\u0442\u0438\u043d\u0438\u0430\u043d I. \u041d\u0435\u0433\u043e\u0432\u0430\u0442\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430 \u0446\u0435\u043b \u0435 \u0434\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u2026","rel":"","context":"In &quot;\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3&quot;","block_context":{"text":"\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_51_20-pm.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_51_20-pm.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_51_20-pm.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_51_20-pm.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_51_20-pm.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_51_20-pm.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":657,"url":"https:\/\/vkrastev1blog.com\/2024\/10\/19\/%d0%bc%d0%be%d1%8f-%d0%bf%d0%be%d0%b3%d0%bb%d0%b5%d0%b4-%d0%b7%d0%b0-%d0%b1%d0%be%d0%b3-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d1%85%d1%80%d0%b8%d1%81%d1%82%d0%be%d1%81\/","url_meta":{"origin":31,"position":2},"title":"\u05d4\u05d4\u05e9\u05e7\u05e4\u05d4 \u05e9\u05dc\u05d9 \u05e2\u05dc \u05d0\u05dc\u05d5\u05d4\u05d9\u05dd, \u05d4\u05ea\u05e0\"\u05da \u05d5\u05d4\u05de\u05e9\u05d9\u05d7","author":"vkrastev2014","date":"19.10.2024","format":false,"excerpt":"\u0418\u043a\u043e\u043d\u0430 \u043d\u0430 \u0418\u0441\u0443\u0441 \u0425\u0440\u0438\u0441\u0442\u043e\u0441 \u0417\u0434\u0440\u0430\u0432\u0435\u0439\u0442\u0435 \u0438\u0441\u043a\u0430\u043c \u0434\u0430 \u0441\u043f\u043e\u0434\u0435\u043b\u044f \u043c\u043e\u0438\u0442\u0435 \u0440\u0430\u0437\u0441\u044a\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a \u0437\u0430 \u0411\u043e\u0433 \u0438 \u0437\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0441. \u0410\u0437 \u0441\u044a\u043c \u043d\u043e\u0432 \u0432\u044a\u0432 \u0432\u044f\u0440\u0430\u0442\u0430 \u0438 \u0442\u0435\u043f\u044a\u0440\u0432\u0430 \u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438 \u0434\u0430 \u0443\u0447\u0430 \u043f\u043e\u0432\u0435\u0447\u0435 \u0437\u0430 \u0411\u043e\u0433. \u041e\u043f\u0438\u0442\u0432\u0430\u043c \u0441\u0438 \u0434\u0430 \u0441\u0438 \u043e\u0431\u044f\u0441\u043d\u044f \u043d\u0435\u0449\u0430\u0442\u0430 \u043a\u0430\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a \u0438 \u0438\u043d\u0436\u0438\u043d\u0435\u0440 \u043d\u043e \u0441\u0438 \u043c\u0438\u0441\u043b\u044f, \u0447\u0435 \u0447\u043e\u0432\u0435\u0448\u043a\u0438\u044f \u043c\u043e\u0437\u044a\u043a \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430\u2026","rel":"","context":"In &quot;\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3&quot;","block_context":{"text":"\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/10\/image-4.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1733,"url":"https:\/\/vkrastev1blog.com\/2025\/01\/29\/%d0%b7%d0%b0-%d0%b1%d0%be%d0%b3-%d0%b8-%d0%b2%d1%81%d0%b5%d0%bb%d0%b5%d0%bd%d0%b0%d1%82%d0%b0\/","url_meta":{"origin":31,"position":3},"title":"\u05dc\u05de\u05e2\u05df \u05d0\u05dc\u05d5\u05d4\u05d9\u05dd \u05d5\u05d4\u05d9\u05e7\u05d5\u05dd","author":"vkrastev2014","date":"29.01.2025","format":false,"excerpt":"\u041f\u0440\u0438\u0447\u0438\u043d\u0438 \u0434\u0430 \u0432\u044f\u0440\u0432\u0430\u043c\u0435, \u0447\u0435 \u0411\u043e\u0433 \u043d\u0430\u0438\u0441\u0442\u0438\u043d\u0430 \u0441\u044a\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430. \u043e\u0442 \u041c\u0435\u0440\u0438\u043b\u0438\u043d \u0410\u0434\u0430\u043c\u0441\u044a\u043d \u0412\u0441\u0435\u043b\u0435\u043d\u0430\u0442\u0430 \u0438\u043c\u0430 \u043d\u0430\u0447\u0430\u043b\u043e - \u043a\u0430\u043a\u0432\u043e \u0433\u043e \u0435 \u043f\u0440\u0435\u0434\u0438\u0437\u0432\u0438\u043a\u0430\u043b\u043e? \u0423\u0447\u0435\u043d\u0438\u0442\u0435 \u0441\u0430 \u0443\u0431\u0435\u0434\u0435\u043d\u0438, \u0447\u0435 \u043d\u0430\u0448\u0430\u0442\u0430 \u0412\u0441\u0435\u043b\u0435\u043d\u0430 \u0435 \u0437\u0430\u043f\u043e\u0447\u043d\u0430\u043b\u0430 \u0441 \u0435\u0434\u043d\u0430 \u043e\u0433\u0440\u043e\u043c\u043d\u0430 \u0435\u043a\u0441\u043f\u043b\u043e\u0437\u0438\u044f \u043d\u0430 \u0435\u043d\u0435\u0440\u0433\u0438\u044f \u0438 \u0441\u0432\u0435\u0442\u043b\u0438\u043d\u0430, \u043a\u043e\u044f\u0442\u043e \u043d\u0430\u0440\u0438\u0447\u0430\u043c\u0435 \u0413\u043e\u043b\u0435\u043c\u0438\u044f\u0442 \u0432\u0437\u0440\u0438\u0432. \u0422\u043e\u0432\u0430 \u0435\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0441\u044a\u0431\u0438\u0442\u0438\u0435 \u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u043d\u0430\u0447\u0430\u043b\u043e\u0442\u043e \u043d\u0430 \u0432\u0441\u0438\u0447\u043a\u043e, \u043a\u043e\u0435\u0442\u043e \u0441\u044a\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430: \u0412\u0441\u0435\u043b\u0435\u043d\u0430\u0442\u0430, \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e\u0442\u043e\u2026","rel":"","context":"In &quot;\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3&quot;","block_context":{"text":"\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2025\/01\/093e0eeeb6f9dbc2d2ef6a13bec53c59-20240927143705-1.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2025\/01\/093e0eeeb6f9dbc2d2ef6a13bec53c59-20240927143705-1.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2025\/01\/093e0eeeb6f9dbc2d2ef6a13bec53c59-20240927143705-1.jpeg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2025\/01\/093e0eeeb6f9dbc2d2ef6a13bec53c59-20240927143705-1.jpeg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2537,"url":"https:\/\/vkrastev1blog.com\/2026\/10\/02\/%d1%82%d1%80%d0%b5%d1%82%d0%b8%d1%8f%d1%82-%d0%b2%d1%81%d0%b5%d0%bb%d0%b5%d0%bd%d1%81%d0%ba%d0%b8-%d1%81%d1%8a%d0%b1%d0%be%d1%80-%d0%b2-%d0%b5%d1%84%d0%b5%d1%81-431-%d0%b3-%d1%85%d1%80%d0%b8%d1%81\/","url_meta":{"origin":31,"position":4},"title":"\u05d4\u05de\u05d5\u05e2\u05e6\u05d4 \u05d4\u05d0\u05e7\u05d5\u05de\u05e0\u05d9\u05ea \u05d4\u05e9\u05dc\u05d9\u05e9\u05d9\u05ea \u05e9\u05dc \u05d0\u05e4\u05e1\u05d5\u05e1 (431): \u05d4\u05de\u05d7\u05dc\u05d5\u05e7\u05ea \u05d4\u05db\u05e8\u05d9\u05e1\u05d8\u05d5\u05dc\u05d5\u05d2\u05d9\u05ea \u05d1\u05d9\u05df \u05e7\u05d9\u05e8\u05d9\u05dc\u05d5\u05e1 \u05de\u05d0\u05dc\u05db\u05e1\u05e0\u05d3\u05e8\u05d9\u05d4 \u05dc\u05e0\u05e1\u05d8\u05d5\u05e8\u05d9\u05d5\u05e1 \u05d5\u05d0\u05d9\u05e9\u05d5\u05e8 \u05d4\u05d3\u05d5\u05e7\u05d8\u05e8\u05d9\u05e0\u05d4 \u05e9\u05dc \u05d0\u05dd \u05d4\u05d0\u05dc\u05d5\u05d4\u05d9\u05dd","author":"vkrastev2014","date":"02.10.2026","format":false,"excerpt":"\u0422\u0440\u0435\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440 \u0432 \u0415\u0444\u0435\u0441 (431 \u0433.): \u0445\u0440\u0438\u0441\u0442\u043e\u043b\u043e\u0433\u0438\u0447\u043d\u0438\u044f\u0442 \u0441\u043f\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 \u041a\u0438\u0440\u0438\u043b \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u0438\u0439\u0441\u043a\u0438 \u0438 \u041d\u0435\u0441\u0442\u043e\u0440\u0438\u0439 \u0438 \u0443\u0442\u0432\u044a\u0440\u0436\u0434\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0443\u0447\u0435\u043d\u0438\u0435\u0442\u043e \u0437\u0430 \u0411\u043e\u0433\u043e\u0440\u043e\u0434\u0438\u0446\u0430 \u041d\u0430\u0443\u0447\u043d\u043e-\u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e \u0438 \u0431\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u0441\u043a\u043e \u0438\u0437\u0441\u043b\u0435\u0434\u0432\u0430\u043d\u0435 \u0410\u0432\u0442\u043e\u0440: \u0412\u0435\u043b\u0438\u0441\u043b\u0430\u0432 \u041a\u0440\u044a\u0441\u0442\u0435\u0432\u0422\u0435\u043c\u0430: \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430 \u0440\u0430\u043d\u043d\u0430\u0442\u0430 \u0426\u044a\u0440\u043a\u0432\u0430 \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043d\u0430 \u0445\u0440\u0438\u0441\u0442\u043e\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u0442\u0430 \u0434\u043e\u0433\u043c\u0430\u0442\u0438\u043a\u0430\u041f\u0435\u0440\u0438\u043e\u0434: 428\u2013451 \u0433.\u041e\u0441\u043d\u043e\u0432\u043d\u043e \u0441\u044a\u0431\u0438\u0442\u0438\u0435: \u0422\u0440\u0435\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440, \u0415\u0444\u0435\u0441, 431 \u0433. \u0420\u0435\u0437\u044e\u043c\u0435 \u0422\u0440\u0435\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440, \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u2026","rel":"","context":"In &quot;\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3&quot;","block_context":{"text":"\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_12_12-pm.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_12_12-pm.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_12_12-pm.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_12_12-pm.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_12_12-pm.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/chatgpt-image-oct-2-2026-08_12_12-pm.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":2556,"url":"https:\/\/vkrastev1blog.com\/2026\/10\/02\/%d1%88%d0%b5%d1%81%d1%82%d0%b8%d1%8f%d1%82-%d0%b2%d1%81%d0%b5%d0%bb%d0%b5%d0%bd%d1%81%d0%ba%d0%b8-%d1%81%d1%8a%d0%b1%d0%be%d1%80-%d0%b2-%d0%ba%d0%be%d0%bd%d1%81%d1%82%d0%b0%d0%bd%d1%82%d0%b8%d0%bd\/","url_meta":{"origin":31,"position":5},"title":"\u05d4\u05de\u05d5\u05e2\u05e6\u05d4 \u05d4\u05d0\u05e7\u05d5\u05de\u05e0\u05d9\u05ea \u05d4\u05e9\u05d9\u05e9\u05d9\u05ea \u05e9\u05dc \u05e7\u05d5\u05e0\u05e1\u05d8\u05e0\u05d8\u05d9\u05e0\u05d5\u05e4\u05d5\u05dc (680\u2013681): \u05d2\u05d9\u05e0\u05d5\u05d9 \u05d4\u05de\u05d5\u05e0\u05d5\u05ea\u05dc\u05d9\u05d6\u05dd \u05d5\u05d0\u05d9\u05e9\u05d5\u05e8 \u05e9\u05ea\u05d9 \u05d4\u05e8\u05e6\u05d5\u05e0\u05d5\u05ea \u05d5\u05e9\u05ea\u05d9 \u05d4\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05d1\u05d9\u05e9\u05d5\u05e2 \u05d4\u05de\u05e9\u05d9\u05d7","author":"vkrastev2014","date":"02.10.2026","format":false,"excerpt":"\u0428\u0435\u0441\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440 \u0432 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u043f\u043e\u043b (680\u2013681 \u0433.): \u043e\u0441\u044a\u0436\u0434\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043c\u043e\u043d\u043e\u0442\u0435\u043b\u0438\u0442\u0441\u0442\u0432\u043e\u0442\u043e \u0438 \u0443\u0442\u0432\u044a\u0440\u0436\u0434\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0434\u0432\u0435\u0442\u0435 \u0432\u043e\u043b\u0438 \u0438 \u0434\u0432\u0435\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432 \u0418\u0438\u0441\u0443\u0441 \u0425\u0440\u0438\u0441\u0442\u043e\u0441 \u041d\u0430\u0443\u0447\u043d\u043e-\u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430 \u0441\u0442\u0430\u0442\u0438\u044f \u0437\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0432\u0430\u043d\u0435 \u0432 WordPress \u0420\u0435\u0437\u044e\u043c\u0435: \u0428\u0435\u0441\u0442\u0438\u044f\u0442 \u0432\u0441\u0435\u043b\u0435\u043d\u0441\u043a\u0438 \u0441\u044a\u0431\u043e\u0440, \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043a\u0430\u0442\u043e \u0422\u0440\u0435\u0442\u0438\u044f \u0441\u044a\u0431\u043e\u0440 \u0432 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d\u043e\u043f\u043e\u043b, \u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0436\u0434\u0430 \u0432 \u043f\u0435\u0440\u0438\u043e\u0434\u0430 680\u2013681 \u0433. \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u0442\u043e \u043d\u0430 \u0432\u0438\u0437\u0430\u043d\u0442\u0438\u0439\u0441\u043a\u0438\u044f \u0438\u043c\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d IV\u2026","rel":"","context":"In &quot;\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3&quot;","block_context":{"text":"\u05de\u05d0\u05de\u05e8\u05d9\u05dd \u05d4\u05de\u05d5\u05e7\u05d3\u05e9\u05d9\u05dd \u05dc\u05ea\u05e0\"\u05da \u05d5\u05dc\u05d2\u05d1\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d2\u05d5\u05e3","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/yxsv0k-cfybsgrn4iacbsni6wvorwsimqx4mcnk6i7vvno8-yygtibr2p6c7uhf18h7kykuh-oqxfnmevvk2efigpws1vzqug_m-ryim8mdynspdwkucquhts-ckr3g53iyvlogvjhinycbsjewtpqbgjh-apj7ffnumanhcavu.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/yxsv0k-cfybsgrn4iacbsni6wvorwsimqx4mcnk6i7vvno8-yygtibr2p6c7uhf18h7kykuh-oqxfnmevvk2efigpws1vzqug_m-ryim8mdynspdwkucquhts-ckr3g53iyvlogvjhinycbsjewtpqbgjh-apj7ffnumanhcavu.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/yxsv0k-cfybsgrn4iacbsni6wvorwsimqx4mcnk6i7vvno8-yygtibr2p6c7uhf18h7kykuh-oqxfnmevvk2efigpws1vzqug_m-ryim8mdynspdwkucquhts-ckr3g53iyvlogvjhinycbsjewtpqbgjh-apj7ffnumanhcavu.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/yxsv0k-cfybsgrn4iacbsni6wvorwsimqx4mcnk6i7vvno8-yygtibr2p6c7uhf18h7kykuh-oqxfnmevvk2efigpws1vzqug_m-ryim8mdynspdwkucquhts-ckr3g53iyvlogvjhinycbsjewtpqbgjh-apj7ffnumanhcavu.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/yxsv0k-cfybsgrn4iacbsni6wvorwsimqx4mcnk6i7vvno8-yygtibr2p6c7uhf18h7kykuh-oqxfnmevvk2efigpws1vzqug_m-ryim8mdynspdwkucquhts-ckr3g53iyvlogvjhinycbsjewtpqbgjh-apj7ffnumanhcavu.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":8,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/31\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}