{"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":"Java \u00d0\u00b3\u00d0\u00b5\u00d0\u00bd\u00d0\u00b5\u00d1\u20ac\u00d0\u00b8\u00d0\u00ba\u00d1\u201a\u00d0\u00b5\u00d1\u20ac\u00d1\u2013 \u00d0\u00bc\u00d1\u2039\u00d1\u0081\u00d0\u00b0\u00d0\u00bb\u00d0\u00b4\u00d0\u00b0\u00d1\u20ac\u00d0\u00bc\u00d0\u00b5\u00d0\u00bd \u00d2\u203a\u00d1\u2039\u00d1\u0081\u00d2\u203a\u00d0\u00b0\u00d1\u02c6\u00d0\u00b0 \u00d1\u201a\u00d2\u00af\u00d1\u20ac\u00d0\u00b4\u00d0\u00b5 \u00d1\u201a\u00d2\u00af\u00d1\u0081\u00d1\u2013\u00d0\u00bd\u00d0\u00b4\u00d1\u2013\u00d1\u20ac\u00d1\u2013\u00d0\u00bb\u00d0\u00b4\u00d1\u2013"},"content":{"rendered":"<p>\u049a\u043e\u0441\u044b\u043c\u0448\u0430 \u0430\u049b\u043f\u0430\u0440\u0430\u0442 \u0430\u043b\u0443 \u04af\u0448\u0456\u043d \u043e\u0441\u044b \u0436\u0438\u0456 \u049b\u043e\u0439\u044b\u043b\u0430\u0442\u044b\u043d \u0441\u04b1\u0440\u0430\u049b\u0442\u0430\u0440\u0434\u044b \u049b\u0430\u0440\u0430\u04a3\u044b\u0437:<\/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>\u041c\u0456\u043d\u0435, \u049b\u044b\u0441\u049b\u0430\u0448\u0430 \u0442\u04af\u0440\u0434\u0435 \u043e\u0441\u044b \u0436\u0438\u0456 \u049b\u043e\u0439\u044b\u043b\u0430\u0442\u044b\u043d \u0441\u04b1\u0440\u0430\u049b\u0442\u0430\u0440\u0434\u044b\u04a3 \u043a\u0435\u0439\u0431\u0456\u0440 \u043c\u0430\u04a3\u044b\u0437\u0434\u044b \u0442\u04b1\u0441\u0442\u0430\u0440\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f\u0442\u0435\u0433\u0456):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u0436\u04b1\u0431\u044b&lt;X,Y&gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 X \u0431\u0456\u0440\u0456\u043d\u0448\u0456;<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 Y \u0441\u0435\u043a\u0443\u043d\u0434;<\/tt><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u0436\u04b1\u043f(X a1, Y a2) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0431\u0456\u0440\u0456\u043d\u0448\u0456 = a1;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0441\u0435\u043a\u0443\u043d\u0434 = a2;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 public X getFirst() { \u0430\u043b\u0434\u044b\u043c\u0435\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }<\/tt><br \/>\n<tt> \u00a0 public Y getSecond() { \u0441\u0435\u043a\u0443\u043d\u0434\u0442\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }<\/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>\u0421\u044b\u043d\u044b\u043f <tt> \u0416\u04b1\u043f<\/tt> \u0435\u043a\u0456 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0430\u0440 <tt> X <\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> .\u00a0 \u041e\u043b\u0430\u0440 \u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f \u0431\u043e\u043b\u0493\u0430\u043d \u043a\u0435\u0437\u0434\u0435 \u0442\u04af\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0456\u043c\u0435\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u0416\u04b1\u043f<\/tt> \u0442\u0443\u0434\u044b\u0440\u044b\u043b\u0493\u0430\u043d. \u041c\u044b\u0441\u0430\u043b\u044b, \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f\u0434\u0430 <tt> Pair&lt;String, Date&gt;<\/tt> \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 <tt> X<\/tt> \u0442\u04af\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u043c\u0435\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u0416\u043e\u043b<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> -\u043c\u0435\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0430\u0434\u044b\u00a0 <tt> \u041a\u04af\u043d<\/tt> .<br \/>\n\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043b\u0430\u0440\u0434\u044b\u04a3 \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u043b\u0443 \u0430\u044f\u0441\u044b <tt> X <\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b<b> <i> <\/i> <\/b> \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u0442\u043e\u043b\u044b\u049b \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u0441\u044b.\u00a0 \u0411\u04b1\u043b \u0430\u0443\u049b\u044b\u043c\u0434\u0430 \u0435\u043a\u0456 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440 <tt> X <\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u0441\u0438\u044f\u049b\u0442\u044b \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u043b\u0430\u0434\u044b (\u043a\u0435\u0439\u0431\u0456\u0440 \u0448\u0435\u043a\u0442\u0435\u0443\u043b\u0435\u0440\u043c\u0435\u043d). \u0416\u043e\u0493\u0430\u0440\u044b\u0434\u0430\u0493\u044b \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u0434\u0430\u043d\u0430 \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0456\u043d\u0456\u04a3 \u0434\u04d9\u043b\u0435\u043b\u0456 \u0436\u04d9\u043d\u0435 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456 \u0436\u04d9\u043d\u0435 \u0434\u0430\u043d\u0430 \u04e9\u0440\u0456\u0441\u0442\u0435\u0440\u0456\u043d\u0456\u04a3 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0434\u044b.<br \/>\n\u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0448\u0435\u043a\u0442\u0435\u0443\u043b\u0435\u0440\u043c\u0435\u043d \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. \u0428\u0435\u043a\u0430\u0440\u0430\u043b\u0430\u0440 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0442\u0456\u043d \u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437 \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u0435\u0434\u0456. \u0411\u0456\u0437\u0434\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u0431\u0456\u0437 \u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437 \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456\u04a3 \u0435\u0448\u049b\u0430\u043d\u0434\u0430\u0439 \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0456\u043d \u0448\u0430\u049b\u044b\u0440\u043c\u0430\u0439\u043c\u044b\u0437 <tt> X <\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> . \u041e\u0441\u044b \u0441\u0435\u0431\u0435\u043f\u0442\u0456 \u0435\u043a\u0456 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440 \u0448\u0435\u043a\u0442\u0435\u043b\u043c\u0435\u0433\u0435\u043d.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0431\u0435\u0442\u043e\u043d \u0442\u04af\u0440\u0456):<\/p>\n<blockquote><p><tt> public void printPair(<b> <span style=\"color:#000099;\"> \u0416\u04b1\u043f&lt;String,Long&gt;<\/span> <\/b> \u0436\u04b1\u043f) {<\/tt><br \/>\n<tt> \u00a0 System.out.println(\"(\"+pair.getFirst()+\",\"+pair.getSecond()+\")\");<\/tt><br \/>\n<tt> }<\/tt><tt> <b> <span style=\"color:#000099;\"> \u0416\u04b1\u043f&lt;String,Long&gt;<\/span> <\/b> \u0448\u0435\u043a\u0442\u0435\u0443 = \u0436\u0430\u04a3\u0430 <b> <span style=\"color:#000099;\"> \u0416\u04b1\u043f&lt;String,Long&gt;<\/span> <\/b> (\u00ab\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u0434\u044b\u00bb, 1024 \u043b);<\/tt><br \/>\n<tt> printPair(\u0448\u0435\u043a\u0442\u0435\u0443);<\/tt><\/p><\/blockquote>\n<p>\u041c\u044b\u0441\u0430\u043b (\u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456):<\/p>\n<blockquote>\n<blockquote><p><tt> public void printPair(<b> <span style=\"color:#000099;\"> Pair&lt;?,?&gt;<\/span> <\/b> \u0436\u04b1\u043f) {<\/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> \u0448\u0435\u043a\u0442\u0435\u0443 = \u0436\u0430\u04a3\u0430 <b> <span style=\"color:#000099;\"> \u0416\u04b1\u043f&lt;String,Long&gt;<\/span> <\/b> (\u00ab\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u0434\u044b\u00bb, 1024 \u043b);<\/tt><br \/>\n<tt> printPair(\u0448\u0435\u043a\u0442\u0435\u0443);<\/tt><\/p><\/blockquote>\n<\/blockquote>\n<p>\u0416\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0456\u04a3 \u0431\u0430\u0440\u043b\u044b\u049b \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u044b \u0431\u0456\u0440\u0434\u0435\u0439 \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0443 \u0443\u0430\u049b\u044b\u0442\u044b \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u043a\u04e9\u0440\u0456\u043d\u0456\u0441\u0456\u043d, \u0430\u0442\u0430\u043f \u0430\u0439\u0442\u049b\u0430\u043d\u0434\u0430 \u04e9\u04a3\u0434\u0435\u043b\u043c\u0435\u0433\u0435\u043d \u0442\u04af\u0440\u0434\u0456\u04a3 \u043a\u04e9\u0440\u0456\u043d\u0456\u0441\u0456\u043d \u043e\u0440\u0442\u0430\u049b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0434\u044b. \u041c\u044b\u0441\u0430\u043b\u044b, \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0456\u04a3 \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u044b <tt> \u0422\u0456\u0437\u0456\u043c<\/tt> , \u0441\u0438\u044f\u049b\u0442\u044b <tt> List&lt;Date&gt;<\/tt> , <tt> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/tt> , <tt> \u0422\u0456\u0437\u0456\u043c&lt;Long&gt;<\/tt> , \u0442.\u0431. \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0443\u0430\u049b\u044b\u0442\u044b\u043d\u0434\u0430 \u04d9\u0440\u0442\u04af\u0440\u043b\u0456 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u0438\u043f\u0442\u0435\u0440\u0433\u0435 \u0438\u0435, \u0431\u0456\u0440\u0430\u049b \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u04af\u0440\u0456 \u0431\u0456\u0440\u0434\u0435\u0439 <tt> \u0422\u0456\u0437\u0456\u043c <\/tt> \u043e\u0440\u044b\u043d\u0434\u0430\u0443 \u0443\u0430\u049b\u044b\u0442\u044b\u043d\u0434\u0430.<\/p>\n<p>\u0410\u043a\u0442\u0435\u0440 \u0435\u043a\u0456 \u0431\u04e9\u043b\u0456\u043a\u0442\u0435\u043d \u0442\u04b1\u0440\u0430\u0434\u044b:<\/p>\n<ul>\n<li>\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0443\u0430\u049b\u044b\u0442\u044b\u043d\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0442\u044b\u043d \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u0438\u043f\u0442\u0456 \u0442\u0435\u043a\u0441\u0435\u0440\u0443 \u0436\u04d9\u043d\u0435<\/li>\n<li>\u043e\u0440\u044b\u043d\u0434\u0430\u0443 \u0443\u0430\u049b\u044b\u0442\u044b\u043d\u0434\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0434\u044b \u043c\u0430\u0448\u0438\u043d\u0430 \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0442\u044b\u043d \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u04af\u0440\u0434\u0456 \u0442\u0435\u043a\u0441\u0435\u0440\u0443.<\/li>\n<\/ul>\n<p>\u0421\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0431\u04e9\u043b\u0456\u043a \u0442\u0430\u0431\u044b\u0441\u049b\u0430 \u0436\u0435\u0442\u0435 \u0430\u043b\u043c\u0430\u0439\u0442\u044b\u043d \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b\u0437 \u0431\u0435\u0439\u043d\u0435\u043b\u0435\u0440\u0434\u0456 \u0441\u04b1\u0440\u044b\u043f\u0442\u0430\u0439\u0434\u044b, \u043c\u044b\u0441\u0430\u043b\u044b: <tt> \u0416\u043e\u043b<\/tt> \u0441\u043e\u043b <tt> \u041a\u04af\u043d<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 \u0431\u0430\u0441\u0442\u0430\u043f <tt> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/tt> \u0441\u043e\u043b <tt> List&lt;Date&gt;<\/tt> .<\/p>\n<p>\u0414\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043b\u044b\u049b \u0431\u04e9\u043b\u0456\u043a \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0443 \u0443\u0430\u049b\u044b\u0442\u044b \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u044b\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0434\u044b \u0436\u04d9\u043d\u0435 \u043e\u0440\u044b\u043d\u0434\u0430\u0443 \u0443\u0430\u049b\u044b\u0442\u044b\u043d\u0434\u0430 \u0442\u04af\u0440\u0456\u043d \u0442\u0435\u043a\u0441\u0435\u0440\u0443\u0434\u0456 \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0434\u044b.\u00a0 \u041e\u043b \u043a\u04e9\u0442\u0435\u0440\u0435\u0434\u0456 <tt> ClassCastException<\/tt> \u0435\u0433\u0435\u0440 \u043d\u044b\u0441\u0430\u043d\u043d\u044b\u04a3 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u04af\u0440\u0456 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043d\u044b\u04a3 \u043c\u0430\u049b\u0441\u0430\u0442\u0442\u044b \u0442\u04af\u0440\u0456 (\u043d\u0435\u043c\u0435\u0441\u0435 \u043c\u0430\u049b\u0441\u0430\u0442\u0442\u044b \u0442\u04af\u0440\u0434\u0456\u04a3 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456) \u0431\u043e\u043b\u043c\u0430\u0441\u0430. \u0414\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043b\u044b\u049b \u0431\u04e9\u043b\u0456\u0433\u0456 \u0431\u0430\u0440 \u049b\u04b1\u0439\u043c\u0430\u043b\u0430\u0440\u0434\u044b\u04a3 \u043c\u044b\u0441\u0430\u043b\u0434\u0430\u0440\u044b \u043a\u0435\u043b\u0435\u0441\u0456\u0434\u0435\u043d \u0430\u043b\u044b\u043d\u0493\u0430\u043d <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u0441\u043e\u043b <tt> \u0416\u043e\u043b<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 \u0431\u0430\u0441\u0442\u0430\u043f <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u0441\u043e\u043b <tt> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/tt> .\u00a0 \u0411\u04b1\u043b \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u043d \u043a\u0456\u0448\u0456 \u0442\u04af\u0440\u0433\u0435 \u0434\u0435\u0439\u0456\u043d \u0442\u04e9\u043c\u0435\u043d\u0434\u0435\u0443 \u0434\u0435\u043f \u0430\u0442\u0430\u043b\u0430\u0442\u044b\u043d\u0434\u0430\u0440.<\/p>\n<p>\u0411\u0435\u0442\u043e\u043d\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u0434\u0430\u0440\u044b <tt> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/tt> , <tt> Map&lt;String,Date&gt;<\/tt> , \u0431\u0456\u0440\u0430\u049b \u0435\u043c\u0435\u0441 <tt> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 <tt> Map&lt;String,?&gt;<\/tt> .<\/p>\n<p>\u041a\u0435\u0439\u0434\u0435 \u043a\u04af\u0442\u0456\u043b\u0435\u0434\u0456, \u0431\u04b1\u043b \u0430 <tt> \u0422\u0456\u0437\u0456\u043c&lt;Object&gt;<\/tt> \u0430-\u043d\u044b\u04a3 \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0456 \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456 <tt> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/tt> , \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> \u0416\u043e\u043b<\/tt> .\u00a0 \u0411\u04b1\u043b \u043a\u04af\u0442\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0435\u0440 \u04af\u0448\u0456\u043d \u043c\u04b1\u043d\u0434\u0430\u0439 \u049b\u0430\u0442\u044b\u043d\u0430\u0441 \u0442\u04af\u0440\u0456 \u0431\u0430\u0440 \u0435\u043a\u0435\u043d\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b:\u00a0 <tt> \u041d\u044b\u0441\u0430\u043d[]<\/tt> \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> \u0416\u043e\u043b[]<\/tt> , \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> \u0416\u043e\u043b<\/tt> . (\u049a\u0430\u0440\u044b\u043c-\u049b\u0430\u0442\u044b\u043d\u0430\u0441\u0442\u044b\u04a3 \u0431\u04b1\u043b \u0442\u04af\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0431\u0435\u043b\u0433\u0456\u043b\u0456 <i> \u043a\u043e\u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044f<\/i> .) \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0441\u0443\u043f\u0435\u0440-\u0456\u0448\u043a\u0456 \u0442\u0438\u043f \u049b\u0430\u0442\u044b\u043d\u0430\u0441\u044b \u0441\u04d9\u0439\u043a\u0435\u0441 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0435 \u0442\u0430\u0440\u0430\u043b\u0430\u0434\u044b. \u0416\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456\u04a3 \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u044b \u04af\u0448\u0456\u043d \u043c\u04b1\u043d\u0434\u0430\u0439 \u0442\u04af\u0440 \u049b\u0430\u0442\u044b\u043d\u0430\u0441\u044b \u0436\u043e\u049b. (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456 <i> \u0435\u043c\u0435\u0441<\/i> \u043a\u043e\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0442\u044b.)<\/p>\n<p>\u0411\u0456\u0440 \u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f\u0442\u0435\u0433\u0456 \u0434\u0430\u043d\u0430\u043b\u0430\u0440 \u0430\u0440\u0430\u0441\u044b\u043d\u0434\u0430 \u0441\u0443\u043f\u0435\u0440-\u0441\u0443\u0431\u0442\u0438\u043f-\u049b\u0430\u0442\u044b\u043d\u0430\u0441\u044b\u043d\u044b\u04a3 \u0431\u043e\u043b\u043c\u0430\u0443\u044b \u04d9\u0440\u0442\u04af\u0440\u043b\u0456 \u0441\u0430\u043b\u0434\u0430\u0440\u0493\u0430 \u04d9\u043a\u0435\u043b\u0435\u0434\u0456.\u00a0 \u041c\u0456\u043d\u0435, \u043c\u044b\u0441\u0430\u043b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b\u044b:<\/p>\n<p><tt> void printAll(ArrayList&lt;Object&gt; c) {<\/tt><br \/>\n<tt> \u00a0 \u04af\u0448\u0456\u043d (O \u043e\u0431\u044a\u0435\u043a\u0442\u0456\u0441\u0456: c)\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 System.out.println(o);<\/tt><br \/>\n<tt> }<\/tt><tt> ArrayList&lt;String&gt; \u0442\u0456\u0437\u0456\u043c\u0456 = \u0436\u0430\u04a3\u0430 ArrayList&lt;String&gt;();<\/tt><br \/>\n<tt> ... \u0442\u0456\u0437\u0456\u043c\u0434\u0456 \u0442\u043e\u043b\u0442\u044b\u0440\u0443 ...<\/tt><br \/>\n<tt> printAll(\u0442\u0456\u0437\u0456\u043c);\u00a0\u00a0 \/\/ \u049b\u0430\u0442\u0435<\/tt><\/p>\n<p>\u0410 <tt> ArrayList&lt;String&gt;<\/tt> \u043d\u044b\u0441\u0430\u043d\u0434\u044b a \u0441\u04b1\u0440\u0430\u0439\u0442\u044b\u043d \u04d9\u0434\u0456\u0441\u043a\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0431\u0435\u0440\u0443 \u043c\u04af\u043c\u043a\u0456\u043d \u0435\u043c\u0435\u0441 <tt> ArrayList&lt;Object&gt;<\/tt> \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u0435\u043a\u0456 \u0442\u04af\u0440 \u0431\u0456\u0440\u0434\u0435\u0439 \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u0434\u0430\u043d\u0430\u043b\u044b\u049b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b, \u0431\u0456\u0440\u0430\u049b \u04af\u0448\u0456\u043d <i> \u04d9\u0440\u0442\u04af\u0440\u043b\u0456<\/i> \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0434\u0456 \u0442\u0435\u0440\u0456\u04a3\u0456\u0437 \u0436\u04d9\u043d\u0435 \u043e\u0441\u044b \u0441\u0435\u0431\u0435\u043f\u0442\u0456 \u043e\u043b\u0430\u0440 \u0431\u0456\u0440-\u0431\u0456\u0440\u0456\u043c\u0435\u043d \u04af\u0439\u043b\u0435\u0441\u043f\u0435\u0439\u0434\u0456.<\/p>\n<p>\u0411\u0435\u0442\u043e\u043d\u0434\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u0438\u043f\u0442\u0435\u0440 \u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f\u0442\u0435\u0433\u0456 \u043d\u0430\u049b\u0442\u044b \u04af\u043b\u0433\u0456\u043b\u0435\u0440 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.\u00a0 \u041e\u043b\u0430\u0440 \u0434\u0435\u0440\u043b\u0456\u043a \u0442\u04af\u0440\u043b\u0435\u0440\u0433\u0435 \u04b1\u049b\u0441\u0430\u0439\u0434\u044b; \u0442\u0435\u043a \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0448\u0435\u043a\u0442\u0435\u0443\u043b\u0435\u0440 \u0431\u0430\u0440.\u00a0 \u041e\u043b\u0430\u0440\u0434\u044b \u043a\u0435\u043b\u0435\u0441\u0456 \u043c\u0430\u049b\u0441\u0430\u0442\u0442\u0430\u0440\u0434\u0430 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0411\u041e\u041b\u041c\u0410\u0419\u0414\u042b:<\/p>\n<ul>\n<li>\u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0435\u0440\u0434\u0456 \u049b\u04b1\u0440\u0443\u0493\u0430 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d<\/li>\n<li>\u0435\u0440\u0435\u043a\u0448\u0435 \u04e9\u04a3\u0434\u0435\u0443\u0434\u0435<\/li>\n<li>\u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0493\u044b \u0441\u04e9\u0437\u0431\u0435-\u0441\u04e9\u0437<\/li>\n<li>\u0430 <tt> \u0434\u0430\u043d\u0430\u0441\u044b<\/tt> \u04e9\u0440\u043d\u0435\u043a<\/li>\n<\/ul>\n<p>\u0422\u04af\u0440\u0456 \u043d\u0430\u049b\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0434\u0456 \u04b1\u0441\u0442\u0430\u0439\u0442\u044b\u043d \u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0435\u0440 \u0437\u0430\u04a3\u0441\u044b\u0437 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0437\u0430\u04a3\u0441\u044b\u0437 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u04af\u0440\u0456):<\/p>\n<p><tt> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0436\u0430\u0440\u0430\u043c\u0441\u044b\u0437\u0434\u044b\u049b \u0441\u044b\u043d\u0430\u0493\u044b() {<\/tt><br \/>\n<tt> \u00a0 <b> <span style=\"color:#660000;\"> \u0416\u04b1\u043f&lt;Integer,Integer&gt;[]<\/span> <\/b> intPairArr = \u0436\u0430\u04a3\u0430 <b> <span style=\"color:#660000;\"> \u0416\u04b1\u043f&lt;Integer,Integer&gt;[10]<\/span> <\/b> ; <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 addElements(intPairArr);\u00a0<\/tt><br \/>\n<tt> \u00a0 Pair&lt;Integer,Integer&gt; \u0436\u04b1\u043f = intPairArr[1];<\/tt><br \/>\n<tt> \u00a0 \u0411\u04af\u0442\u0456\u043d i = pair.getFirst();<\/tt><br \/>\n<tt> \u00a0 pair.setSecond(i);<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0436\u0430\u0440\u0430\u043c\u0441\u044b\u0437 addElements(<b> \u041d\u044b\u0441\u0430\u043d[]<\/b> objArr) {<\/tt><br \/>\n<tt> \u00a0 objArr[0] = \u0436\u0430\u04a3\u0430 Pair&lt;Integer,Integer&gt;(0,0);<\/tt><br \/>\n<tt> \u00a0 objArr[1] = \u0436\u0430\u04a3\u0430 Pair&lt;String,String&gt;(\"\",\"\");\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ ArrayStoreException \u043a\u04e9\u043c\u0435\u0433\u0456\u043c\u0435\u043d \u0441\u04d9\u0442\u0441\u0456\u0437\u0434\u0456\u043a\u043a\u0435 \u04b1\u0448\u044b\u0440\u0430\u0443\u044b \u043a\u0435\u0440\u0435\u043a<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u049b\u04b1\u0440\u0430\u043c\u0434\u0430\u0441 \u0442\u04af\u0440\u0456 \u043d\u0430\u049b\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u0438\u043f\u0442\u0456 \u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0435\u0440\u0434\u0456 \u0436\u0430\u0441\u0430\u0443\u0493\u0430 \u0442\u044b\u0439\u044b\u043c \u0441\u0430\u043b\u0430\u0434\u044b, \u043c\u044b\u0441\u0430\u043b\u044b <tt> \u0416\u04b1\u043f&lt;Integer,Integer&gt;<\/tt> \u0431\u0456\u0437\u0434\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u0434\u0430.\u00a0 \u0410\u043b\u0434\u044b\u04a3\u0493\u044b \u0436\u0430\u0437\u0431\u0430\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0434\u044b\u04a3 a \u0442\u0430\u043b\u0430\u043f\u0442\u0430\u0440\u044b\u043d\u0430 \u0441\u04d9\u0439\u043a\u0435\u0441 \u043a\u0435\u043b\u0435\u0442\u0456\u043d\u0456 \u043d\u0435\u0433\u0435 \u043e\u0440\u044b\u043d\u0434\u044b \u0435\u043a\u0435\u043d\u0456\u043d \u0442\u0430\u043b\u049b\u044b\u043b\u0430\u0434\u044b\u049b<span style=\"color:#000000;\"> <tt> \u0416\u04b1\u043f&lt;Integer,Integer&gt;[]<\/tt> <\/span> \u0437\u0430\u04a3\u0441\u044b\u0437 \u0440\u0435\u0442\u0456\u043d\u0434\u0435.\u00a0 \u041d\u0435\u0433\u0456\u0437\u0433\u0456 \u043c\u04d9\u0441\u0435\u043b\u0435 \u043c\u044b\u043d\u0430\u0434\u0430, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043c\u0435\u043d \u0436\u04b1\u043c\u044b\u0441 \u0443\u0430\u049b\u044b\u0442\u044b \u0436\u04af\u0439\u0435\u0441\u0456 \u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0456\u04a3 a \u0435\u043a\u0435\u043d\u0456\u043d \u049b\u0430\u043c\u0442\u0430\u043c\u0430\u0441\u044b\u0437 \u0435\u0442\u0443\u0456 \u043a\u0435\u0440\u0435\u043a <i> \u0431\u0456\u0440\u0442\u0435\u043a\u0442\u0456<\/i> \u0431\u0456\u0440 \u0442\u0438\u043f\u0442\u0456 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0442\u0435\u0440 \u0442\u0456\u0437\u0431\u0435\u0433\u0456.\u00a0 \u0422\u04af\u0440\u0434\u0456 \u0442\u0435\u043a\u0441\u0435\u0440\u0443\u043b\u0435\u0440\u0434\u0456\u04a3 \u0431\u0456\u0440\u0456, \u0430\u0442\u0430\u043f \u0430\u0439\u0442\u049b\u0430\u043d\u0434\u0430, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0434\u044b \u043c\u0430\u0448\u0438\u043d\u0430\u043d\u044b\u04a3 \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0443 \u0443\u0430\u049b\u044b\u0442\u044b\u043d\u0434\u0430 \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0442\u044b\u043d \u043c\u0430\u0441\u0441\u0438\u0432-\u0434\u04af\u043a\u0435\u043d\u0434\u0456 \u0442\u0435\u043a\u0441\u0435\u0440\u0443\u0456 \u0431\u04e9\u0433\u0434\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0442\u0456\u04a3 \u049b\u0430\u0442\u0435 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0443\u0456\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439 \u0430\u043b\u043c\u0430\u0439\u0434\u044b. \u041c\u044b\u0441\u0430\u043b\u0434\u0430 \u0435\u043a\u0456\u043d\u0448\u0456 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0443 <tt> addElements<\/tt> \u04d9\u0434\u0456\u0441 \u0441\u04d9\u0442\u0441\u0456\u0437\u0434\u0456\u043a\u043a\u0435 \u04b1\u0448\u044b\u0440\u0430\u0443\u044b \u043a\u0435\u0440\u0435\u043a, \u0441\u0435\u0431\u0435\u0431\u0456 \u043e\u043b\u0430\u0440 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u043b\u0434\u044b\u049b \u043c\u04d9\u043d\u0434\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0456\u043d\u0435 \u0436\u043e\u043b\u0434\u0430\u0440 \u0436\u04b1\u0431\u044b\u043d \u049b\u043e\u0441\u0442\u044b, \u0431\u0456\u0440\u0430\u049b \u043e\u043b \u043a\u04af\u0442\u043a\u0435\u043d\u0434\u0435\u0439 \u0441\u04d9\u0442\u0441\u0456\u0437\u0434\u0456\u043a\u043a\u0435 \u04b1\u0448\u044b\u0440\u0430\u043c\u0430\u0439\u0434\u044b. \u041c\u04b1\u043d\u044b\u04a3 \u0441\u0435\u0431\u0435\u043f\u0442\u0435\u0440\u0456 \u0430\u043b\u0434\u044b\u04a3\u0493\u044b \u043c\u0430\u049b\u0430\u043b\u0430\u0434\u0430 \u0442\u0430\u043b\u049b\u044b\u043b\u0430\u043d\u0434\u044b.<\/p>\n<p>\u0415\u0433\u0435\u0440 \u0442\u04af\u0440\u0456 \u043d\u0430\u049b\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0434\u0456 \u04b1\u0441\u0442\u0430\u0439\u0442\u044b\u043d \u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0435\u0440\u0434\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430 \u0430\u043b\u043c\u0430\u0441\u0430\u049b, \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u0448\u0435\u0448\u0456\u043c \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043d\u0435\u043d\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u043c\u044b\u0437?<\/p>\n<p>3 \u044b\u049b\u0442\u0438\u043c\u0430\u043b \u0448\u0435\u0448\u0456\u043c\u0434\u0456 \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u0430\u0439\u044b\u049b:<\/p>\n<ul>\n<li>\u0448\u0438\u043a\u0456\u0437\u0430\u0442 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043c\u0430\u0441\u0441\u0438\u0432\u0456<\/li>\n<li>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u0448\u0435\u043a\u0442\u0435\u043b\u043c\u0435\u0433\u0435\u043d \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0456<\/li>\n<li>\u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0456\u04a3 \u043e\u0440\u043d\u044b\u043d\u0430 \u0436\u0438\u043d\u0430\u049b<\/li>\n<\/ul>\n<p>\u0411\u0435\u0442\u043e\u043d\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043c\u0430\u0441\u0441\u0438\u0432\u0442\u0435\u0440\u0456 \u0437\u0430\u04a3\u0441\u044b\u0437 \u0431\u043e\u043b\u0493\u0430\u043d\u044b\u043c\u0435\u043d, \u0431\u0435\u0442\u043e\u043d\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d \u0436\u0438\u043d\u0430\u0443\u0493\u0430 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0435\u0434\u0456.<\/p>\n<p>\u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 &#8211; \u043a\u0435\u043c \u0434\u0435\u0433\u0435\u043d\u0434\u0435 \u0431\u0456\u0440 \u0442\u04af\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u0431\u043e\u043b\u0430\u0442\u044b\u043d \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0456\u04a3 \u0434\u0430\u043d\u0430\u0441\u044b.\u00a0 \u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u0434\u0430\u0440\u044b <tt> \u0416\u0438\u043d\u0430\u049b&lt;?&gt;<\/tt> , <tt> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> , <tt> Comparator&lt;? super String&gt;<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> Pair&lt;String,?&gt;<\/tt> . \u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u043d\u0430\u049b\u0442\u044b \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u0434\u044b \u049b\u0430\u043c\u0442\u0438\u0442\u044b\u043d \u0442\u04af\u0440\u043b\u0435\u0440 \u0442\u043e\u0431\u044b\u043d \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456.\u00a0 \u041f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0442\u044b\u043d \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u0442\u04af\u0440\u0456 \u043d\u0430\u049b\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456\u04a3 \u043e\u0442\u0431\u0430\u0441\u044b\u043d\u0430 \u0436\u0430\u0442\u0430\u0442\u044b\u043d\u044b\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0434\u044b.\u00a0 \u041c\u044b\u0441\u0430\u043b\u044b, \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 <tt> \u0416\u0438\u043d\u0430\u049b&lt;?&gt;<\/tt> \u0431\u0430\u0440\u043b\u044b\u049b \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u044f\u043b\u0430\u0440\u044b\u043d\u044b\u04a3 \u043e\u0442\u0431\u0430\u0441\u044b\u043d \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456 <tt> \u00d0\u2013\u00d0\u00b8\u00d0\u00bd\u00d0\u00b0\u00d2\u203a<\/tt> \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0442\u04af\u0440\u0456\u043d\u0435 \u049b\u0430\u0440\u0430\u043c\u0430\u0441\u0442\u0430\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.\u00a0 \u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 <tt> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0442\u04af\u0440\u0456 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u0431\u0430\u0440\u043b\u044b\u049b \u0442\u0456\u0437\u0456\u043c \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043e\u0442\u0431\u0430\u0441\u044b\u043d \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456\u00a0 <tt> \u0421\u0430\u043d<\/tt> .\u00a0 \u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 <tt> Comparator&lt;? super String&gt;<\/tt> \u0431\u0430\u0440\u043b\u044b\u049b \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u044f\u043b\u0430\u0440\u044b\u043d\u044b\u04a3 \u043e\u0442\u0431\u0430\u0441\u044b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> \u0421\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0493\u044b\u0448<\/tt> \u0442\u0438\u043f\u0442\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <tt> \u0416\u043e\u043b.<\/tt><\/p>\n<p><strong><em>\u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 \u049b\u0430\u043b\u044b\u043f\u0442\u044b \u043c\u0430\u0493\u044b\u043d\u0430\u0434\u0430\u0493\u044b \u0442\u04af\u0440 \u0435\u043c\u0435\u0441 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0431\u0435\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u043d\/\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u043d \u043d\u0435\u043c\u0435\u0441\u0435 \u04e9\u04a3\u0434\u0435\u043b\u043c\u0435\u0433\u0435\u043d \u0442\u04af\u0440\u0434\u0435\u043d \u0431\u0430\u0441\u049b\u0430).<\/em> <\/strong><\/p>\n<p>\u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d \u0442\u0435\u0440\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0431\u0435\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u043c\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440 \u0441\u0438\u044f\u049b\u0442\u044b):<\/p>\n<ul>\n<li>\u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456\u04a3 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0436\u04d9\u043d\u0435 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435<\/li>\n<li>\u04e9\u0440\u0456\u0441 \u0442\u04af\u0440\u0456 \u043d\u0435\u043c\u0435\u0441\u0435 \u0436\u0435\u0440\u0433\u0456\u043b\u0456\u043a\u0442\u0456 \u0441\u0456\u043b\u0442\u0435\u043c\u0435 \u0430\u0439\u043d\u044b\u043c\u0430\u043b\u044b\u0441\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435<\/li>\n<li>\u0431\u0430\u0441\u049b\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456\u04a3 \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u043d\u0456\u04a3 \u049b\u04b1\u0440\u0430\u043c\u0434\u0430\u0441 \u0442\u04af\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435<\/li>\n<li>\u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0440\u0434\u0430\u0493\u044b \u043c\u0430\u049b\u0441\u0430\u0442\u0442\u044b \u0442\u04af\u0440 \u0440\u0435\u0442\u0456\u043d\u0434\u0435<\/li>\n<\/ul>\n<p>\u0422\u0435\u043a \u0442\u0438\u043f\u0442\u0435\u0440 \u0493\u0430\u043d\u0430 \u0435\u043c\u0435\u0441, \u04d9\u0434\u0456\u0441\u0442\u0435\u0440 \u0434\u0435 \u0436\u0430\u043b\u043f\u044b \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d. \u0421\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0436\u04d9\u043d\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04d9\u0434\u0456\u0441\u0442\u0435\u0440, \u0441\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440 \u0442\u0438\u043f\u0442\u0456\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0433\u0435 \u0438\u0435 \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u0434\u044b \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0456 \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u043b\u0435\u0440\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043a\u0435 \u04b1\u049b\u0441\u0430\u0441. \u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0431\u04e9\u043b\u0456\u043c\u0456 \u0431\u04b1\u0440\u044b\u0448\u0442\u044b\u049b \u0436\u0430\u049b\u0448\u0430\u043b\u0430\u0440\u043c\u0435\u043d \u0448\u0435\u043a\u0442\u0435\u043b\u0435\u0434\u0456 \u0436\u04d9\u043d\u0435 \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u0430\u043b\u0434\u044b\u043d\u0434\u0430 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. \u041e\u043d\u044b\u04a3 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0456 \u043c\u0435\u043d \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b \u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f\u0442\u0435\u0433\u0456 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0442\u0456\u0437\u0456\u043c\u0456\u043c\u0435\u043d \u0431\u0456\u0440\u0434\u0435\u0439.<\/p>\n<p>\u041c\u0456\u043d\u0435, \u0433\u0435\u043d\u0435\u0440\u0438\u043a\u0442\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u044b <tt> \u043c\u0430\u043a\u0441<\/tt> \u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437 \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0442\u0435\u0440 \u0436\u0438\u044b\u043d\u044b\u043d\u0434\u0430\u0493\u044b \u0435\u04a3 \u04af\u043b\u043a\u0435\u043d \u043c\u04d9\u043d\u0434\u0456 \u0435\u0441\u0435\u043f\u0442\u0435\u0439\u0442\u0456\u043d \u04d9\u0434\u0456\u0441 <tt> \u0410<\/tt> .<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0436\u0430\u043b\u043f\u044b \u04d9\u0434\u0456\u0441):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u0436\u0438\u043d\u0430\u049b\u0442\u0430\u0440\u044b {<\/tt><br \/>\n<tt> \u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b <b> <span style=\"color:#000099;\"> &lt;A \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u043c\u0430\u043b\u044b &lt;A&gt;&gt; A \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/span> <\/b> \u043c\u0430\u043a\u0441(\u0416\u0438\u043d\u0430\u049b&lt;<b> <span style=\"color:#000099;\"> \u0410<\/span> <\/b> &gt; xs) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 Iterator&lt;<b> <span style=\"color:#000099;\"> \u0410<\/span> <\/b> &gt; xi = xs.iterator();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u0410<\/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;\"> \u0410<\/span> <\/b> x = xi.next();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u0435\u0433\u0435\u0440 (w.compareTo(x) &lt; 0) w = x;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 w;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }\u00a0<\/tt><\/p><\/blockquote>\n<p>The <tt> \u043c\u0430\u043a\u0441<\/tt> \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u0431\u0456\u0440 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0430\u0440<tt> \u0410<\/tt> .\u00a0 \u0411\u04b1\u043b \u04d9\u0434\u0456\u0441 \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439\u0442\u0456\u043d \u0442\u043e\u043f\u0442\u0430\u043c\u0430\u043d\u044b\u04a3 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0442\u04af\u0440\u0456\u043d\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u043e\u0440\u044b\u043d \u04b1\u0441\u0442\u0430\u0443\u0448\u044b. \u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0448\u0435\u0433\u0456 \u0431\u0430\u0440; \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u0443\u044b \u043a\u0435\u0440\u0435\u043a <tt> \u0421\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u043c\u0430\u043b\u044b&lt;A&gt;<\/tt><\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0441\u043e\u043b \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0435\u0433\u0456, \u0431\u04b1\u043b \u0436\u043e\u043b\u044b <i> \u0431\u0456\u0440\u0433\u0435<\/i> \u0448\u0435\u043a\u0430\u0440\u0430\u043b\u0430\u0440\u044b):<\/p>\n<blockquote><p><tt> \u0436\u0430\u043b\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 Comparable&lt;T&gt; {<\/tt><br \/>\n<tt> \u00a0 public int compareTo(T arg);<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u0436\u0430\u043b\u043f\u044b \u0441\u044b\u043d\u044b\u043f TreeMap&lt;Key <b> <span style=\"color:#000066;\"> Comparable&lt;Key&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/span> <\/b> ,Data&gt;{<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043b\u0430\u0441\u0441 Entry&lt;K,V&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 K \u043f\u0435\u0440\u043d\u0435\u0441\u0456;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 V \u043c\u04d9\u043d\u0456;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;K,V&gt; \u0441\u043e\u043b \u0436\u0430\u049b = \u043d\u04e9\u043b;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;K,V&gt; \u043e\u04a3 \u0436\u0430\u049b = \u043d\u04e9\u043b;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;K,V&gt; \u0430\u0442\u0430-\u0430\u043d\u0430\u0441\u044b;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u04e9\u0442\u043f\u0435\u043b\u0456 Entry&lt;Key,Data&gt; \u0442\u04af\u0431\u0456\u0440\u0456 = null;<\/tt><br \/>\n<tt> \u00a0 ...<\/tt><br \/>\n<tt> \u00a0 private Entry&lt;Key,Data&gt; getEntry(\u043a\u0456\u043b\u0442 \u043a\u0456\u043b\u0442\u0456) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Entry&lt;Key,Data&gt; p = \u0442\u04af\u0431\u0456\u0440;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u043a\u0456\u043b\u0442 k = \u043a\u0456\u043b\u0442;<\/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;\"> \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0443(p.key)<\/span> <\/b> ;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0435\u0433\u0435\u0440 (cmp == 0)<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 p;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0431\u0430\u0441\u049b\u0430 \u0431\u043e\u043b\u0441\u0430 (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 \u0431\u0430\u0441\u049b\u0430\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 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u043d\u04e9\u043b;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u043b\u043e\u0433\u0438\u043a\u0430\u043b\u044b\u049b \u049b\u04b1\u0440\u0430\u043c\u044b\u043d\u0434\u0430\u041a\u0456\u043b (\u041a\u0456\u043b\u0442 \u043a\u0456\u043b\u0442\u0456) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 getEntry(\u043a\u0456\u043b\u0442) \u049b\u0430\u0439\u0442\u0430\u0440\u0443 != null;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u0416\u043e\u0493\u0430\u0440\u044b\u0434\u0430\u0493\u044b \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 <tt> \u041a\u0456\u043b\u0442<\/tt> \u0448\u0435\u0433\u0456 \u0431\u0430\u0440 <tt> \u0421\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u043c\u0430\u043b\u044b&lt;Key&gt;<\/tt> .\u00a0 \u0428\u0435\u043a\u0442\u0435\u0443 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f\u0441\u044b\u043d\u044b\u04a3 \u0435\u043a\u0456 \u04d9\u0441\u0435\u0440\u0456 \u0431\u0430\u0440:<\/p>\n<ul>\n<li><i> \u041e\u043b \u0448\u0435\u043a \u0431\u0435\u043b\u0433\u0456\u043b\u0435\u0439\u0442\u0456\u043d \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443\u0433\u0435 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u0431\u0435\u0440\u0435\u0434\u0456<\/i> .\u00a0 \u041c\u044b\u0441\u0430\u043b\u0434\u0430, \u0448\u0435\u043a <tt> \u0421\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u043c\u0430\u043b\u044b&lt;Key&gt; <\/tt> \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443\u0433\u0435 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u0431\u0435\u0440\u0435\u0434\u0456 <tt> \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0443<\/tt> \u0456\u0441\u043a\u0435 \u0430\u0441\u044b\u0440\u0443\u0434\u0430 \u049b\u043e\u043b\u0434\u0430\u043d\u0493\u044b\u043c\u044b\u0437 \u043a\u0435\u043b\u0435\u0442\u0456\u043d \u04d9\u0434\u0456\u0441 <tt> TreeMap<\/tt> \u0441\u044b\u043d\u044b\u043f.<\/li>\n<\/ul>\n<ul>\n<li><i> \u0416\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0456\u04a3 \u0434\u0430\u043d\u0430\u0441\u044b\u043d \u0436\u0430\u0441\u0430\u0443 \u04af\u0448\u0456\u043d \u0442\u0435\u043a &#8220;\u0448\u0435\u043a\u0430\u0440\u0430\u043b\u044b\u049b&#8221; \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d \u0493\u0430\u043d\u0430 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.<\/i> \u00a0 \u041c\u044b\u0441\u0430\u043b\u0434\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456, \u043c\u044b\u0441\u0430\u043b\u044b <tt> TreeMap&lt;Number,String&gt;<\/tt> \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043d\u0431\u0430\u0493\u0430\u043d \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456, \u0441\u0435\u0431\u0435\u0431\u0456 \u0442\u04af\u0440\u0456 <tt> \u0421\u0430\u043d<\/tt> \u049b\u043e\u0441\u0430\u043b\u049b\u044b \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u043c\u0430\u0439\u0434\u044b <tt> \u0421\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u043c\u0430\u043b\u044b&lt;Number&gt;<\/tt> .\u00a0 \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 \u0441\u0438\u044f\u049b\u0442\u044b <tt> TreeMap&lt;String,String&gt;<\/tt> \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043d\u0430\u0434\u044b, \u0441\u0435\u0431\u0435\u0431\u0456 String \u0442\u04af\u0440\u0456 \u0448\u0435\u043a\u0442\u0435\u0440\u0434\u0435, \u044f\u0493\u043d\u0438 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> Comparable&lt;String&gt;<\/tt> .<\/li>\n<\/ul>\n<p>\u0411\u0430\u0440\u043b\u044b\u049b \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440 \u0436\u04d9\u043d\u0435 \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0436\u04d9\u043d\u0435 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456 \u049b\u043e\u0441\u0430 \u0430\u043b\u0493\u0430\u043d\u0434\u0430, \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0493\u0430\u043d \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d.\u00a0 \u049a\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c \u0442\u0438\u043f\u0442\u0435\u0440 \u0434\u0435, \u0436\u0438\u044b\u043c \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u0434\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u043c\u0430\u0439\u0434\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b\u0434\u0430\u0440 (\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0448\u0435\u043a\u0430\u0440\u0430\u043b\u0430\u0440\u044b\u043d\u044b\u04a3 \u0442\u0438\u043f\u0456):<\/p>\n<blockquote><p><tt> X0 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> int<\/span> <\/b> &gt; { ... }\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> X1 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u041d\u044b\u0441\u0430\u043d[]<\/span> <\/b> &gt; { ... } <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> X2 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u0421\u0430\u043d<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X3 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u0416\u043e\u043b<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X4 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u0416\u04af\u0433\u0456\u0440\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X5 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u0422\u0430\u049b\u044b\u0440\u044b\u043f. \u041a\u04af\u0439<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X6 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u0422\u0456\u0437\u0456\u043c<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X7 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X8 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X9 \u043a\u043b\u0430\u0441\u044b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> Comparable&lt;? \u0441\u0443\u043f\u0435\u0440 \u0441\u0430\u043d\u044b&gt;<\/span> <\/b> &gt; { ... }<\/tt><br \/>\n<tt> X10&lt;T \u043a\u043b\u0430\u0441\u044b \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#000099;\"> \u041a\u0430\u0440\u0442\u0430.Entry&lt;?,?&gt;<\/span> <\/b> &gt; { ... }<\/tt><\/p><\/blockquote>\n<p>\u041a\u043e\u0434 \u04af\u043b\u0433\u0456\u0441\u0456 \u049b\u0430\u0440\u0430\u0431\u0430\u0439\u044b\u0440 \u0442\u0438\u043f\u0442\u0435\u0440\u0434\u0456 \u043a\u04e9\u0440\u0441\u0435\u0442\u0435\u0434\u0456, \u043c\u044b\u0441\u0430\u043b\u044b <tt> int<\/tt> \u0441\u0438\u044f\u049b\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 <tt> \u041d\u044b\u0441\u0430\u043d[] <\/tt> \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u043c\u0435\u0439\u0434\u0456.<\/p>\n<p>\u0441\u0438\u044f\u049b\u0442\u044b \u0441\u044b\u043d\u044b\u043f \u0442\u04af\u0440\u043b\u0435\u0440\u0456 <tt> \u0421\u0430\u043d<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 <tt> \u0416\u043e\u043b<\/tt> , \u0436\u04d9\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0442\u04af\u0440\u043b\u0435\u0440\u0456, \u043c\u044b\u0441\u0430\u043b\u044b <tt> \u0416\u04af\u0433\u0456\u0440\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b<\/tt> , \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0433\u0435\u043d.<\/p>\n<p>Enum \u0442\u04af\u0440\u043b\u0435\u0440\u0456, \u043c\u044b\u0441\u0430\u043b\u044b <tt> \u0422\u0430\u049b\u044b\u0440\u044b\u043f. \u041a\u04af\u0439<\/tt> \u0441\u043e\u043d\u044b\u043c\u0435\u043d \u049b\u0430\u0442\u0430\u0440 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0435\u0434\u0456. <tt> \u0422\u0430\u049b\u044b\u0440\u044b\u043f. \u041a\u04af\u0439<\/tt> \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0493\u0430\u043d \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u0434\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u044b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.\u00a0 \u0421\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0433\u0435 \u0434\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0435\u0434\u0456.<\/p>\n<p>\u0428\u0438\u043a\u0456\u0437\u0430\u0442 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0435 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0435\u0434\u0456; <tt> <span style=\"color:#000000;\"> \u0422\u0456\u0437\u0456\u043c<\/span> <\/tt> \u043c\u044b\u0441\u0430\u043b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0433\u0435, \u043c\u044b\u0441\u0430\u043b\u044b, \u043d\u0430\u049b\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456 \u049b\u043e\u0441\u0430, \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0435\u0434\u0456 <tt> \u0422\u0456\u0437\u0456\u043c&lt;String&gt;<\/tt> , \u0441\u0438\u044f\u049b\u0442\u044b \u0448\u0435\u043a\u0442\u0435\u043b\u0433\u0435\u043d \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440 <tt> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> Comparable&lt;? \u0441\u0443\u043f\u0435\u0440 Long&gt;<\/tt> , \u0436\u04d9\u043d\u0435 \u0441\u0438\u044f\u049b\u0442\u044b \u0448\u0435\u043a\u0442\u0435\u043b\u043c\u0435\u0433\u0435\u043d \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456 <tt> \u041a\u0430\u0440\u0442\u0430.Entry&lt;?,?&gt;<\/tt> .\u00a0 \u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u0448\u0435\u043a\u0442\u0435\u0443 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u0431\u0435\u043b\u0433\u0456\u043b\u0435\u0439\u0442\u0456\u043d \u0442\u0438\u043f\u0442\u0435\u0440 \u0442\u043e\u0431\u044b\u043d\u0430 \u0436\u0430\u0442\u0430\u0442\u044b\u043d \u0431\u0430\u0440\u043b\u044b\u049b \u0442\u04af\u0440\u043b\u0435\u0440\u0433\u0435 \u0434\u04d9\u043b\u0435\u043b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u0435\u0434\u0456.\u00a0 \u049a\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 \u0448\u0435\u043a\u0442\u0435\u043b\u0443\u0456 \u04e9\u0440\u0456\u0441\u0442\u0435\u0440 \u043c\u0435\u043d \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0448\u0435\u043a\u0442\u0435\u043b\u0433\u0435\u043d \u049b\u0430\u0442\u044b\u043d\u0430\u0441\u0442\u044b \u0493\u0430\u043d\u0430 \u0431\u0435\u0440\u0435\u0434\u0456; \u0448\u0435\u043a\u0442\u0435\u0443\u043b\u0435\u0440 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u0442\u04af\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456):<\/p>\n<blockquote><p><tt> X&lt; \u043a\u043b\u0430\u0441\u044b<b> <span style=\"color:#000099;\"> T List&lt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456 \u043c\u0435? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/span> <\/b> &gt; {<\/tt><br \/>\n<tt> \u00a0 public void someMethod(T t) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 t.add(\u0436\u0430\u04a3\u0430 \u04b0\u0437\u044b\u043d(0L));\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 n \u0441\u0430\u043d\u044b = t.remove(0);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u0441\u044b\u043d\u044b\u043f \u0441\u044b\u043d\u0430\u0493\u044b {<\/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;\"> \u04b0\u0437\u0430\u049b<\/span> <\/b> <span style=\"color:#000000;\"> &gt;&gt; x1 = \u0436\u0430\u04a3\u0430 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;\"> \u0416\u043e\u043b<\/span> <\/b> <span style=\"color:#000000;\"> &gt;&gt; x2 = \u0436\u0430\u04a3\u0430 X&lt;ArrayList&lt;String&gt;&gt;(); <\/span> <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u0422\u04af\u0440\u0434\u0456\u04a3 \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u043b\u044b\u049b \u0430\u0439\u043d\u044b\u043c\u0430\u043b\u044b\u043b\u0430\u0440\u044b<tt> \u00d0\u00a2 <\/tt> (\u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456) \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u043b\u044b\u049b \u0430\u0439\u043d\u044b\u043c\u0430\u043b\u044b\u043b\u0430\u0440\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u044b\u043b\u0430\u0434\u044b (\u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b).\u00a0 \u0411\u0456\u0437\u0434\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u043e\u043d\u044b\u04a3 \u0441\u0430\u043b\u0434\u0430\u0440\u044b, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0442\u0456\u043d \u00ab\u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437\u00bb \u0442\u04af\u0440\u0434\u0456\u04a3 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u043d \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u0439\u0442\u044b\u043d \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456 \u0448\u0430\u049b\u044b\u0440\u0443\u0434\u0430\u043d \u0431\u0430\u0441 \u0442\u0430\u0440\u0442\u0430\u0434\u044b, \u043c\u044b\u0441\u0430\u043b\u044b: <tt> List.add<\/tt> , \u0441\u0435\u0431\u0435\u0431\u0456 \u0448\u0435\u043a \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430\u0441\u044b \u0431\u0430\u0440 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.<br \/>\n\u0421\u043e\u043d\u044b\u043c\u0435\u043d \u049b\u0430\u0442\u0430\u0440 \u0448\u0435\u043a\u0442\u0435\u0443 <tt> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> \u0442\u0438\u043f \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0442\u044b\u043d \u0442\u0438\u043f\u0442\u0435\u0440\u0434\u0456 \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0434\u044b. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u0438\u043f\u0442\u0435\u0440 \u0442\u043e\u0431\u044b\u043d\u0430 \u0436\u0430\u0442\u0430\u0442\u044b\u043d \u0431\u0430\u0440\u043b\u044b\u049b \u0442\u0438\u043f\u0442\u0456\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0434\u0456 \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u0439\u0434\u044b <tt> List&lt;? Number&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> , \u044f\u0493\u043d\u0438 \u0431\u0430\u0440\u043b\u044b\u049b \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 <tt> \u0422\u0456\u0437\u0456\u043c<\/tt> \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u0442\u0438\u043f\u0442\u0456\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043f\u0435\u043d <tt> \u0421\u0430\u043d<\/tt> .<\/p>\n<p>\u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0431\u0430\u0441\u049b\u0430 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0448\u0435\u043a\u0430\u0440\u0430\u0441\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u0435\u043a\u0442\u0435\u043b\u0433\u0435\u043d \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0442\u044b\u043d \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u04af\u0448\u0442\u0456\u043a<b> &lt;T&gt;<\/b> {<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 T fst, snd, trd;<\/tt><br \/>\n<tt> \u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b &lt;<b> \u0423<\/b> <b> <span style=\"color:#000099;\"> \u0422 \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b<\/span> <\/b> , <b> \u00d0\u2019 <span style=\"color:#000099;\"> \u0422 \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b<\/span> <\/b> , <b> \u0412 <span style=\"color:#000099;\"> \u0422 \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b<\/span> <\/b> &gt; \u04ae\u0448\u0442\u0456\u043a(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>\u0411\u04b1\u043b \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 <tt> \u00d0\u00a2<\/tt> \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u043a\u043b\u0430\u0441\u0441 \u0442\u0438\u043f\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0448\u0435\u043a\u0430\u0440\u0430\u0441\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0434\u044b <tt> \u0423<\/tt> ,\u00a0 <tt> \u00d0\u2019<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u0412<\/tt> \u0441\u043e\u043b \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0434\u0430\u043d\u0430 \u04d9\u0434\u0456\u0441\u0456\u043d\u0456\u04a3.<\/p>\n<p>\u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0431\u0430\u0441\u049b\u0430 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0448\u0435\u043a\u0430\u0440\u0430\u043b\u0430\u0440\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0434\u044b\u04a3 \u049b\u043e\u0441\u044b\u043c\u0448\u0430 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a\u0442\u0435\u0440\u0456 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440 \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440 \u0456\u0448\u0456\u043d\u0434\u0435 \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d \u043d\u0435\u043c\u0435\u0441\u0435 \u0436\u0430\u043b\u043f\u044b \u04d9\u0434\u0456\u0441 \u0456\u0448\u0456\u043d\u0434\u0435 \u0436\u0435\u0440\u0433\u0456\u043b\u0456\u043a\u0442\u0456 \u0441\u044b\u043d\u044b\u043f \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d \u0436\u0430\u0493\u0434\u0430\u0439\u043b\u0430\u0440\u0434\u044b \u049b\u0430\u043c\u0442\u0438\u0434\u044b.\u00a0 \u0422\u0456\u043f\u0442\u0456 \u0431\u0456\u0440 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0431\u04e9\u043b\u0456\u043c\u0456\u043d\u0434\u0435 \u0431\u0430\u0441\u049b\u0430 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0433\u0435\u043d.<\/p>\n<p>\u041a\u043b\u0430\u0441\u0441 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441 \u043e\u043d\u044b\u04a3 \u0431\u0430\u0440\u043b\u044b\u049b \u0436\u0430\u043b\u043f\u044b \u043c\u04af\u0448\u0435\u043b\u0435\u0440\u0456\u043d\u0435, \u044f\u0493\u043d\u0438 \u0436\u0430\u043b\u043f\u044b \u04e9\u0440\u0456\u0441\u0442\u0435\u0440\u0433\u0435, \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0436\u04d9\u043d\u0435 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u0435\u0434\u0456. \u0422\u0435\u043a \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440 \u049b\u043e\u043b \u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0435\u043c\u0435\u0441, \u0441\u0435\u0431\u0435\u0431\u0456 \u0448\u0435\u043a\u0442\u0456\u04a3 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u0431\u044b\u043d\u0434\u0430 \u0448\u0435\u043a\u043f\u0435\u043d \u0431\u0456\u0440\u0434\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440 \u0431\u043e\u043b\u0430\u0442\u044b\u043d\u044b\u043d\u0430 \u043a\u0435\u043f\u0456\u043b\u0434\u0456\u043a \u0436\u043e\u049b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0442\u044b\u043d \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3):<\/p>\n<blockquote><p><tt> \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u0441\u044b\u043d\u044b\u043f <span style=\"color:#000000;\"> SuperClass<\/span> {<\/tt><tt> \u00a0\u00a0\u00a0 \/\/ \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043c\u04af\u0448\u0435\u043b\u0435\u0440<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0436\u0430\u043b\u043f\u044b \u043d\u04e9\u043c\u0456\u0440 EnumType {THIS, THAT}<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public static Object staticField;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public static void staticMethod() {...}<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 \/\/ \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043c\u04af\u0448\u0435\u043b\u0435\u0440<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0436\u0430\u043b\u043f\u044b \u043a\u043b\u0430\u0441\u0441 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 \/\/ \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b SuperClass() { ... }<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 \/\/ \u0436\u0435\u043a\u0435 \u043c\u04af\u0448\u0435\u043b\u0435\u0440<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 privateField \u0436\u0435\u043a\u0435 \u043d\u044b\u0441\u0430\u043d\u044b;\u00a0<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<p><tt> \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u049b\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b \u0441\u044b\u043d\u044b\u043f SomeClass&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0435\u0434\u0456 <b> <span style=\"color:#006600;\"> SuperClass<\/span> <\/b> &gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0436\u0435\u043a\u0435 T \u043e\u0431\u044a\u0435\u043a\u0442\u0456\u0441\u0456;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public SomeClass(T t) { \u043d\u044b\u0441\u0430\u043d = t; }\u00a0<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0 public String toString() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u049b\u0430\u0439\u0442\u0430\u0440\u0443<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \"\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u0456\u00a0\u00a0\u00a0 : \"+T.EnumType.class+\"\\n\"\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04e9\u0440\u0456\u0441\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+T.staticField+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+T.staticMethod()+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u0456: \"+T.InnerClass.class+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04e9\u0440\u0456\u0441\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+object.nonStaticField+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04d9\u0434\u0456\u0441\u00a0\u00a0\u00a0\u00a0 : \"+object.nonStaticMethod()+\"\\n\"<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+(\u0436\u0430\u04a3\u0430 T())+\"\\n\"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ \u049b\u0430\u0442\u0435<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 +\"\u0436\u0435\u043a\u0435 \u043c\u04af\u0448\u0435\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : \"+object.privateField+\"\\n\"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ \u049b\u0430\u0442\u0435\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>\u0428\u0435\u043a\u0442\u0435\u0443 <tt> SuperClass<\/tt> \u043e\u043d\u044b\u04a3 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0435, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04e9\u0440\u0456\u0441\u0442\u0435\u0440 \u043c\u0435\u043d \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0436\u04d9\u043d\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04e9\u0440\u0456\u0441\u0442\u0435\u0440 \u043c\u0435\u043d \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u0435\u0434\u0456.\u00a0 \u0422\u0435\u043a \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0493\u0430 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443 \u043c\u04af\u043c\u043a\u0456\u043d \u0435\u043c\u0435\u0441.\u00a0 \u0421\u0435\u0431\u0435\u0431\u0456 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440 \u043c\u04b1\u0440\u0430\u0493\u0430 \u0431\u0435\u0440\u0456\u043b\u043c\u0435\u0439\u0434\u0456. \u04d8\u0440\u0431\u0456\u0440 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f \u04e9\u0437\u0456\u043d\u0456\u04a3 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440\u044b\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u0439\u0434\u044b \u0436\u04d9\u043d\u0435 \u043e\u043d\u044b\u04a3 \u0441\u0443\u043f\u0435\u0440\u0441\u044b\u043d\u044b\u043f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043b\u0430\u0440\u044b\u043d\u0430 \u049b\u043e\u043b\u0434\u0430\u0443 \u043a\u04e9\u0440\u0441\u0435\u0442\u0443\u0434\u0456\u04a3 \u049b\u0430\u0436\u0435\u0442\u0456 \u0436\u043e\u049b.\u00a0 \u0414\u0435\u043c\u0435\u043a, \u049b\u043e\u0441\u0430\u043b\u049b\u044b \u043a\u043b\u0430\u0441\u0441 \u0435\u043a\u0435\u043d\u0456\u043d\u0435 \u043a\u0435\u043f\u0456\u043b\u0434\u0456\u043a \u0436\u043e\u049b <tt> SuperClass<\/tt> \u043e\u043d\u044b\u04a3 \u0441\u0443\u043f\u0435\u0440\u043a\u043b\u0430\u0441\u0441\u044b\u043c\u0435\u043d \u0431\u0456\u0440\u0434\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u049a\u0430\u043d\u0434\u0430\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<tt> Enum&lt;E Enum&lt;E&gt;&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> &#8220;-\u043d\u044b\u04a3 \u043c\u04d9\u043b\u0456\u043c\u0434\u0435\u043c\u0435\u0441\u0456 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0430\u0434\u044b <tt> Enum<\/tt> \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0433\u0456 \u0441\u044b\u043d\u044b\u043f <tt> java.lang<\/tt> :<\/p>\n<blockquote><p><tt> \u0430\u0448\u044b\u049b \u0440\u0435\u0444\u0435\u0440\u0430\u0442 \u043a\u043b\u0430\u0441\u044b <b> Enum&lt;E Enum&lt;E&gt;&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/b> {<\/tt><br \/>\n<tt> \u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u0442\u04af\u0440\u0456 <tt> Enum<\/tt> \u0431\u0430\u0440\u043b\u044b\u049b \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u043e\u0440\u0442\u0430\u049b \u0431\u0430\u0437\u0430\u043b\u044b\u049b \u043a\u043b\u0430\u0441\u044b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.\u00a0 Java-\u0434\u0430 \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u0456, \u043c\u044b\u0441\u0430\u043b\u044b <tt> \u0422\u04af\u0441<\/tt> \u0441\u044b\u043d\u044b\u043f\u049b\u0430 \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u0422\u04af\u0441<\/tt> \u0431\u04b1\u043b \u04b1\u0437\u0430\u0440\u0430\u0434\u044b <tt> Enum&lt;Color&gt;<\/tt> . \u0421\u0443\u043f\u0435\u0440\u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u043c\u0430\u049b\u0441\u0430\u0442\u044b <tt> Enum<\/tt> \u0431\u0430\u0440\u043b\u044b\u049b \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0435 \u043e\u0440\u0442\u0430\u049b \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0434\u044b\u043b\u044b\u049b\u0442\u044b \u049b\u0430\u043c\u0442\u0430\u043c\u0430\u0441\u044b\u0437 \u0435\u0442\u0443 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041c\u0456\u043d\u0435, \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u044d\u0441\u043a\u0438\u0437\u0456 <tt> Enum<\/tt> :<\/p>\n<blockquote><p><tt> \u0430\u0448\u044b\u049b \u0440\u0435\u0444\u0435\u0440\u0430\u0442 \u043a\u043b\u0430\u0441\u044b <b> Enum&lt;<span style=\"color:#000099;\"> \u00d0\u2022<\/span> Enum&lt;E&gt;&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/b> Comparable&lt; \u0436\u04af\u0437\u0435\u0433\u0435 \u0430\u0441\u044b\u0440\u0430\u0434\u044b<b> <span style=\"color:#000099;\"> \u00d0\u2022<\/span> <\/b> &gt;, \u0441\u0435\u0440\u0438\u044f\u043b\u0430\u043d\u0430\u0442\u044b\u043d {<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0441\u043e\u04a3\u0493\u044b \u0436\u043e\u043b \u0430\u0442\u0430\u0443\u044b;<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0441\u043e\u04a3\u0493\u044b \u0416\u043e\u043b \u0430\u0442\u0430\u0443\u044b() { ... }<\/tt><tt> \u00a0 private final int ordinal;<\/tt><br \/>\n<tt> \u00a0 public final int ordinal() { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u049b\u043e\u0440\u0493\u0430\u043b\u0493\u0430\u043d Enum(\u0436\u043e\u043b \u0430\u0442\u0430\u0443\u044b, int \u0440\u0435\u0442\u0456) { ... }<\/tt><\/p>\n<p><tt> \u00a0 public String\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 toString() { ... }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u043b\u043e\u0433\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u0435\u04a3(\u0411\u0430\u0441\u049b\u0430 \u043d\u044b\u0441\u0430\u043d) { ... }<\/tt><br \/>\n<tt> \u00a0 public final int hashCode() { ... }<\/tt><br \/>\n<tt> \u00a0 \u049b\u043e\u0440\u0493\u0430\u043b\u0493\u0430\u043d \u0441\u043e\u04a3\u0493\u044b \u043d\u044b\u0441\u0430\u043d clone() CloneNotSupportedException \u0448\u044b\u0493\u0430\u0440\u0430\u0434\u044b { ... }<\/tt><br \/>\n<tt> \u00a0 public final int compareTo(<b> <span style=\"color:#000099;\"> \u00d0\u2022<\/span> <\/b> o) {...}<\/tt><\/p>\n<p><tt> \u00a0 \u0430\u0448\u044b\u049b \u049b\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b Class&lt;<b> <span style=\"color:#000099;\"> \u00d0\u2022<\/span> <\/b> &gt; getDeclaringClass() { ... }<\/tt><br \/>\n<tt> \u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b &lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456 Enum&lt;T&gt;&gt; T valueOf(Class&lt;T&gt; enumType, \u0416\u043e\u043b \u0430\u0442\u0430\u0443\u044b) { ... }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f\u0434\u0430\u0493\u044b \u0442\u0430\u04a3\u0493\u0430\u043b\u0430\u0440\u043b\u044b\u049b \u0431\u0435\u043b\u0433\u0456\u00bb<tt> Enum&lt;E Enum&lt;E&gt;&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> \u00ab \u0431\u04b1\u043b \u0436\u0430\u04a3\u0430\u0434\u0430\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d \u043a\u043b\u0430\u0441\u0441 \u0444\u0430\u043a\u0442\u0456\u0441\u0456 <tt> Enum<\/tt> \u0436\u04d9\u043d\u0435 \u043e\u043d\u044b\u04a3 \u0436\u0430\u04a3\u0430\u0434\u0430\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 <tt> \u00d0\u2022 <\/tt> \u0441\u043e\u043b \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456\u04a3 \u0448\u0435\u043a\u0430\u0440\u0430\u0441\u044b\u043d\u0434\u0430 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.\u00a0 \u0411\u04b1\u043b \u0434\u0435\u0433\u0435\u043d\u0456\u043c\u0456\u0437 <tt> Enum<\/tt> \u0442\u04af\u0440\u0456 \u043e\u043d\u044b\u04a3 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0431\u0456\u0440\u0456 \u04af\u0448\u0456\u043d \u0436\u0430\u0441\u0430\u043b\u0443\u044b \u043a\u0435\u0440\u0435\u043a.\u00a0 \u041c\u04b1\u043d\u044b\u04a3 \u043d\u0435\u043b\u0456\u043a\u0442\u0435\u043d \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b \u0431\u0430\u0440 \u0435\u043a\u0435\u043d\u0456\u043d \u0442\u04af\u0441\u0456\u043d\u0443 \u04af\u0448\u0456\u043d \u04d9\u0440\u0431\u0456\u0440 \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u0456 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0433\u0435 \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0493\u0430\u043d\u044b\u043d \u0435\u0441\u043a\u0435\u0440\u0456\u04a3\u0456\u0437 <tt> Enum<\/tt> .<\/p>\n<p>\u041c\u04b1\u043d\u0434\u0430 \u043e\u0439\u043b\u0430\u043f \u0442\u0430\u0431\u044b\u043b\u0493\u0430\u043d \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u0456 \u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d <tt> \u0422\u04af\u0441<\/tt> :<\/p>\n<blockquote><p><tt> enum <b> \u0422\u04af\u0441<\/b> {\u049a\u042b\u0417\u042b\u041b, \u041a\u04e8\u041a, \u0416\u0410\u0421\u042b\u041b}<\/tt><\/p><\/blockquote>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043e\u043d\u044b \u043a\u0435\u043b\u0435\u0441\u0456 \u0441\u044b\u043d\u044b\u043f\u049b\u0430 \u0430\u0443\u0434\u0430\u0440\u0430\u0434\u044b:<\/p>\n<blockquote><p><tt> \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u049b\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b \u0441\u0430\u0431\u0430\u049b <b> \u0422\u04af\u0441<\/b> \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b <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(\u0416\u043e\u043b \u0430\u0442\u0430\u0443\u044b) { ... }<\/tt><tt> \u00a0 private Color(String s, int i) { super(s, i); }<\/tt><\/p>\n<p><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0441\u043e\u04a3\u0493\u044b \u0422\u04af\u0441 \u049a\u042b\u0417\u042b\u041b;<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0441\u043e\u04a3\u0493\u044b \u0422\u04af\u0441 \u041a\u04e8\u041a;<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0441\u043e\u04a3\u0493\u044b \u0422\u04af\u0441 \u0416\u0410\u0421\u042b\u041b;<\/tt><\/p>\n<p><tt> \u00a0 \u0436\u0435\u043a\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0441\u043e\u04a3\u0493\u044b \u0422\u04af\u0441 $VALUES[];<\/tt><\/p>\n<p><tt> \u00a0 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u049a\u042b\u0417\u042b\u041b = \u0436\u0430\u04a3\u0430 \u0422\u04af\u0441 (\u00ab\u049a\u042b\u0417\u042b\u041b\u00bb, 0);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u041a\u04e8\u041a = \u0436\u0430\u04a3\u0430 \u0422\u04af\u0441(\"\u041a\u04e8\u041a\", 1);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0416\u0410\u0421\u042b\u041b = \u0436\u0430\u04a3\u0430 \u0422\u04af\u0441 (\u00ab\u0416\u0410\u0421\u042b\u041b\u00bb, 2);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 $VALUES = (\u0436\u0430\u04a3\u0430 \u0422\u04af\u0441[] { \u049a\u042b\u0417\u042b\u041b, \u041a\u04e8\u041a, \u0416\u0410\u0421\u042b\u041b });<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u041c\u04b1\u0440\u0430\u043d\u044b\u04a3 \u04d9\u0441\u0435\u0440\u0456 \u0431\u0430\u0440 <tt> \u0422\u04af\u0441<\/tt> \u0442\u04af\u0440\u0456 \u0435\u043d\u0433\u0456\u0437\u0456\u043b\u0433\u0435\u043d \u0431\u0430\u0440\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456 \u043c\u04b1\u0440\u0430 \u0435\u0442\u0435\u0434\u0456 <tt> Enum&lt;Color&gt;<\/tt> .\u00a0 \u041e\u043b\u0430\u0440\u0434\u044b\u04a3 \u049b\u0430\u0442\u0430\u0440\u044b\u043d\u0434\u0430 <tt> \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0443<\/tt> \u04d9\u0434\u0456\u0441.\u00a0 The <tt> \u0422\u04af\u0441. \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0443<\/tt> \u04d9\u0434\u0456\u0441\u0456, \u0431\u04d9\u043b\u043a\u0456\u043c, \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u0443\u044b \u043a\u0435\u0440\u0435\u043a <tt> \u0422\u04af\u0441<\/tt> \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0442\u0456\u043d\u0434\u0435.\u00a0 \u0411\u04b1\u043b \u0441\u0430\u0431\u0430\u049b\u0442\u044b \u04e9\u0442\u043a\u0456\u0437\u0443 \u04af\u0448\u0456\u043d <tt> Enum<\/tt> \u0436\u0430\u043b\u043f\u044b \u0436\u04d9\u043d\u0435 <tt> Enum.compareTo<\/tt> \u04d9\u0434\u0456\u0441 \u0430\u043b\u0430\u0434\u044b <tt> Enum<\/tt> \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 <tt> \u00d0\u2022 <\/tt> \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0442\u0456\u043d\u0434\u0435.\u00a0 \u041d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456\u043d\u0434\u0435 \u0442\u0435\u0440\u0456\u04a3\u0456\u0437 <tt> \u0422\u04af\u0441<\/tt> -\u0434\u0435\u043d \u0430\u043b\u044b\u043d\u0493\u0430\u043d <tt> Enum&lt;Color&gt;<\/tt> \u043c\u04b1\u0440\u0430\u0433\u0435\u0440 \u0430 <tt> \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0443<\/tt> \u0442\u0430\u043b\u0430\u043f \u0435\u0442\u0435\u0442\u0456\u043d \u04d9\u0434\u0456\u0441 <tt> \u0422\u04af\u0441<\/tt> \u0436\u04d9\u043d\u0435 \u0434\u04d9\u043b\u0435\u043b, \u0434\u04d9\u043b \u0441\u043e\u043b\u0430\u0439 \u0431\u043e\u043b\u0443\u044b \u043a\u0435\u0440\u0435\u043a.<br \/>\n\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f\u043d\u044b \u0442\u0430\u043b\u0434\u0430\u0439\u0442\u044b\u043d \u0431\u043e\u043b\u0441\u0430\u049b \u00bb<tt> Enum&lt;E Enum&lt;E&gt;&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> \u00ab\u0411\u04b1\u043b \u04af\u043b\u0433\u0456\u043d\u0456\u04a3 \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u0456\u043b\u0435\u0440\u0456 \u0431\u0430\u0440 \u0435\u043a\u0435\u043d\u0456\u043d \u043a\u04e9\u0440\u0435\u043c\u0456\u0437.<\/p>\n<p>\u0411\u0456\u0440\u0456\u043d\u0448\u0456\u0434\u0435\u043d, \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0493\u0430\u043d \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0442\u04af\u0440\u0434\u0456\u04a3 \u04e9\u0437\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b: \u00ab<tt> <b> Enum<\/b> &lt;E \u04b1\u0437\u0430\u0440\u0430\u0434\u044b <b> Enum<\/b> &lt;E&gt;&gt;<\/tt> &#8220;. \u041e\u043b \u0442\u0435\u043a \u0442\u04af\u0440\u0434\u0456\u04a3 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d\u0435 \u043a\u04e9\u0437 \u0436\u0435\u0442\u043a\u0456\u0437\u0435\u0434\u0456 <tt> Enum<\/tt> \u0442\u04af\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0435\u0434\u0456. (\u0422\u0435\u043e\u0440\u0438\u044f\u043b\u044b\u049b \u0442\u04b1\u0440\u0493\u044b\u0434\u0430\u043d, \u0442\u04af\u0440\u0456 <tt> Enum<\/tt> \u0441\u0438\u044f\u049b\u0442\u044b \u04e9\u0437\u0434\u0456\u0433\u0456\u043d\u0435\u043d \u0436\u0430\u0441\u0430\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d <tt> Enum&lt;Enum&gt;<\/tt> , \u0431\u0456\u0440\u0430\u049b \u0431\u04b1\u043b, \u04d9\u0440\u0438\u043d\u0435, \u0430\u0440\u043d\u0430\u043b\u043c\u0430\u0493\u0430\u043d \u0436\u04d9\u043d\u0435 \u043c\u04b1\u043d\u0434\u0430\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u044f \u043f\u0430\u0439\u0434\u0430\u043b\u044b \u0431\u043e\u043b\u0430\u0442\u044b\u043d \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u044b \u0435\u043b\u0435\u0441\u0442\u0435\u0442\u0443 \u049b\u0438\u044b\u043d.)<\/p>\n<p>\u0415\u043a\u0456\u043d\u0448\u0456\u0434\u0435\u043d, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0433\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u0438\u043f \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0442\u044b\u043d\u0434\u044b\u0493\u044b \u0431\u0430\u0440 <tt> Enum<b> &lt;E&gt;<\/b> <\/tt> , \u043e\u043b \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u0434\u044b <tt> \u00d0\u2022<\/tt> \u0448\u0435\u043a\u0442\u0456\u04a3 \u0442\u04af\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435. \u0411\u04b1\u043b \u043c\u04d9\u043b\u0456\u043c\u0434\u0435\u043c\u0435 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440 \u043c\u0435\u043d \u0434\u0430\u043d\u0430\u0441\u044b \u0430\u0440\u0430\u0441\u044b\u043d\u0434\u0430\u0493\u044b \u043c\u04b1\u0440\u0430\u0433\u0435\u0440\u043b\u0456\u043a \u049b\u0430\u0442\u044b\u043d\u0430\u0441\u049b\u0430 \u043a\u04e9\u0437 \u0436\u0435\u0442\u043a\u0456\u0437\u0435\u0434\u0456 <tt> Enum<\/tt> \u0442\u04af\u0440\u0456\u043d\u0434\u0435 \u0431\u043e\u043b\u0430\u0434\u044b<tt> X Enum&lt;X&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> &#8220;. &#8221; \u0441\u0438\u044f\u049b\u0442\u044b \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456<tt> X Enum&lt;Y&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> &#8221; \u0442\u04af\u0440\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u043d\u0431\u0430\u0439\u0434\u044b <tt> \u042b<\/tt> \u0448\u0435\u0433\u0456\u043d\u0434\u0435 \u0431\u043e\u043b\u043c\u0430\u0439\u0434\u044b; \u0442\u0435\u043a \u049b\u043e\u0441\u0430\u043b\u049b\u044b \u0442\u04af\u0440\u043b\u0435\u0440\u0456 <tt> Enum&lt;X&gt;<\/tt> \u0448\u0435\u0433\u0456\u043d\u0434\u0435 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u04ae\u0448\u0456\u043d\u0448\u0456\u0434\u0435\u043d, \u0431\u04b1\u043b \u0444\u0430\u043a\u0442 \u0431\u0430\u0440 <tt> Enum<\/tt> \u0431\u0456\u0440\u0456\u043d\u0448\u0456 \u043a\u0435\u0437\u0435\u043a\u0442\u0435 \u0436\u0430\u043b\u043f\u044b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.\u00a0 \u0411\u04b1\u043b \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u043a\u0435\u0439\u0431\u0456\u0440 \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0456\u043d \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456 <tt> Enum<\/tt> \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0430\u043b\u044b\u04a3\u044b\u0437 \u043d\u0435\u043c\u0435\u0441\u0435 \u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437 \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u043c\u04d9\u043d\u0434\u0456 \u049b\u0430\u0439\u0442\u0430\u0440\u044b\u04a3\u044b\u0437 (\u043d\u0435\u043c\u0435\u0441\u0435 \u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437 \u0442\u04af\u0440\u0433\u0435 \u0431\u0430\u0441\u049b\u0430\u0448\u0430 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b). \u0411\u0456\u0437\u0433\u0435 \u0431\u0435\u043b\u0433\u0456\u043b\u0456 \u0431\u043e\u043b\u0493\u0430\u043d\u0434\u0430\u0439, \u0431\u04b1\u043b \u0431\u0435\u043b\u0433\u0456\u0441\u0456\u0437 \u0442\u0438\u043f \u043a\u0435\u0439\u0456\u043d\u0456\u0440\u0435\u043a \u049b\u043e\u0441\u0430\u043b\u049b\u044b \u0442\u0438\u043f \u0431\u043e\u043b\u0430\u0434\u044b <tt> X<\/tt> -\u043d\u044b\u04a3 <tt> Enum&lt;X&gt;<\/tt> .\u00a0 \u0414\u0435\u043c\u0435\u043a, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u043d\u0433\u0435\u043d \u0442\u0438\u043f\u0442\u0435 <tt> Enum&lt;X&gt;<\/tt> , \u0431\u04b1\u043b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0434\u0456 \u049b\u0430\u043c\u0442\u0438\u0434\u044b <tt> X<\/tt> , \u0436\u04d9\u043d\u0435 \u043e\u043b\u0430\u0440 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0433\u0435 \u043c\u04b1\u0440\u0430\u043b\u0430\u043d\u0493\u0430\u043d <tt> X<\/tt> .\u00a0 The <tt> \u0441\u0430\u043b\u044b\u0441\u0442\u044b\u0440\u0443<\/tt> \u04d9\u0434\u0456\u0441 \u043e\u0441\u044b\u043d\u0434\u0430\u0439 \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u043c\u044b\u0441\u0430\u043b\u044b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b; \u043e\u043b \u0441\u0443\u043f\u0435\u0440\u0441\u044b\u043d\u044b\u043f\u0442\u0430\u043d \u04d9\u0440\u0431\u0456\u0440 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u049b\u0430 \u043c\u04b1\u0440\u0430\u043b\u0430\u043d\u0493\u0430\u043d \u0436\u04d9\u043d\u0435 \u04d9\u0440\u0431\u0456\u0440 \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u0430\u0440\u043d\u0430\u0439\u044b \u049b\u043e\u043b\u0442\u0430\u04a3\u0431\u0430\u0441\u044b \u0431\u0430\u0440.<\/p>\n<p>\u049a\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b\u043b\u0430\u0439 \u043a\u0435\u043b\u0435, \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0446\u0438\u044f \u00ab<tt> Enum&lt;E Enum&lt;E&gt;&gt; \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/tt> &#8221; \u043a\u0435\u043b\u0435\u0441\u0456\u0434\u0435\u0439 \u0434\u0435\u0448\u0438\u0444\u0440\u043b\u0435\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b: <tt> Enum<\/tt> \u0442\u0435\u043a \u0456\u0448\u043a\u0456 \u0442\u0438\u043f\u0442\u0435\u0440\u0456 \u04af\u0448\u0456\u043d \u0436\u0430\u0441\u0430\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d \u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b \u0436\u04d9\u043d\u0435 \u0431\u04b1\u043b \u0456\u0448\u043a\u0456 \u0442\u0438\u043f\u0442\u0435\u0440 \u043a\u0435\u0439\u0431\u0456\u0440 \u043f\u0430\u0439\u0434\u0430\u043b\u044b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456 \u043c\u04b1\u0440\u0430 \u0435\u0442\u0435\u0434\u0456, \u043e\u043b\u0430\u0440\u0434\u044b\u04a3 \u043a\u0435\u0439\u0431\u0456\u0440\u0435\u0443\u043b\u0435\u0440\u0456 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0433\u0435 \u0430\u0440\u043d\u0430\u0439\u044b \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440\u0434\u0456 \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u0439\u0434\u044b (\u043d\u0435\u043c\u0435\u0441\u0435 \u0431\u0430\u0441\u049b\u0430\u0448\u0430 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0433\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b).<\/p>\n<p><b>\u041a\u043b\u0430\u0441\u0441\u0442\u0430\u0440\u0434\u044b\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0456 \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456<\/b><\/p>\n<p>\u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0448\u0435\u0433\u0456 \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d, \u043c\u044b\u0441\u0430\u043b\u044b <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {...}<\/tt> . \u0411\u0456\u0440\u0430\u049b \u0442\u0438\u043f\u0442\u0456\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456 \u0431\u043e\u043b\u043c\u0430\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d, \u044f\u0493\u043d\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0441\u044b \u0441\u0438\u044f\u049b\u0442\u044b <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T <b> \u0442\u0430\u043c\u0430\u0448\u0430<\/b> Number&gt; {...}<\/tt> \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u043c\u0435\u0439\u0434\u0456.\u00a0 \u041d\u0435\u0433\u0435 \u0436\u043e\u049b?\u00a0 \u0416\u0430\u0443\u0430\u043f: \u0431\u04b1\u043b \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b\u0437, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0441\u0435, \u043e\u043b \u0441\u0456\u0437\u0433\u0435 \u0435\u0448\u0442\u0435\u04a3\u0435 \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u043c\u0430\u0439\u0434\u044b.\u00a0 \u0422\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0434\u0435\u0433\u0456 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430 \u043d\u0435\u043d\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0442\u0456\u043d\u0456\u043d \u0437\u0435\u0440\u0442\u0442\u0435\u0443 \u0430\u0440\u049b\u044b\u043b\u044b \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440\u0434\u044b\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0456 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u043d\u0435\u0433\u0435 \u0448\u0430\u0442\u0430\u0441\u0442\u044b\u0440\u0430\u0442\u044b\u043d\u044b\u043d \u043a\u04e9\u0440\u0435\u0439\u0456\u043a.<\/p>\n<p>\u0422\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0434\u0435\u0433\u0456 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430\u043d\u044b\u04a3 \u04af\u0448 \u04d9\u0441\u0435\u0440\u0456 \u0431\u0430\u0440:<\/p>\n<ol>\n<ol>\n<li><b> <i> \u0428\u0435\u043a\u0442\u0435\u0443\u043b\u0456 \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u044f.<\/i> <\/b> \u0416\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430 \u0436\u0430\u043b\u043f\u044b \u0442\u04af\u0440\u0434\u0456 \u049b\u04b1\u0440\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0442\u044b\u043d \u0442\u04af\u0440\u043b\u0435\u0440 \u0436\u0438\u044b\u043d\u044b\u043d \u0448\u0435\u043a\u0442\u0435\u0439\u0434\u0456.\u00a0 \u0415\u0433\u0435\u0440 \u0431\u0456\u0437 a <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {...} <\/tt> \u043e\u043d\u0434\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u0435\u043a \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043d \u049b\u0430\u043c\u0442\u0430\u043c\u0430\u0441\u044b\u0437 \u0435\u0442\u0435\u0434\u0456 <tt> \u0421\u0430\u043d<\/tt> \u0442\u0438\u043f\u0442\u0456\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.\u00a0 \u042f\u0493\u043d\u0438, \u0430 <tt> Box&lt;Number&gt;<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 \u0430 <tt> Box&lt;Long&gt;<\/tt> \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0433\u0435\u043d, \u0431\u0456\u0440\u0430\u049b \u0430 <tt> Box&lt;Object&gt;<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 <tt> Box&lt;String&gt;<\/tt> \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043d\u0431\u0430\u0493\u0430\u043d \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456<\/li>\n<\/ol>\n<\/ol>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u0433\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0448\u0435\u043a\u0442\u0435\u043b\u0433\u0435\u043d \u0434\u0430\u043d\u0430\u0437\u0430\u043b\u0430\u0443):<br \/>\n<tt> \u043a\u043b\u0430\u0441\u0441 Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 T \u043c\u04d9\u043d\u0456;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public Box(T t) { \u043c\u04d9\u043d = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }\u00a0<\/tt><tt> \u0441\u044b\u043d\u044b\u043f \u0441\u044b\u043d\u0430\u0493\u044b {\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 = \u0436\u0430\u04a3\u0430 Box&lt;Long&gt;(0L);\u00a0\u00a0 <b> \/\/ \u0436\u0430\u049b\u0441\u044b<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Box&lt;String&gt;\u00a0 boxOfString = \u0436\u0430\u04a3\u0430 Box&lt;String&gt;(\"\"); <b> <span style=\"color:#330000;\"> \/\/ \u049b\u0430\u0442\u0435: \u0416\u043e\u043b \u0448\u0435\u043a\u0442\u0435\u0440\u0434\u0435 \u0435\u043c\u0435\u0441<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<ol>\n<li><b> <i> \u0421\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043c\u04af\u0448\u0435\u043b\u0435\u0440\u0433\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443. <\/i> <\/b> \u0416\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430 \u0431\u0430\u0440\u043b\u044b\u049b \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0435\u043c\u0435\u0441 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0436\u04d9\u043d\u0435 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430\u043d\u044b\u04a3 \u04e9\u0440\u0456\u0441\u0442\u0435\u0440\u0456\u043d\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u0435\u0434\u0456.\u00a0 \u0406\u0441\u043a\u0435 \u0430\u0441\u044b\u0440\u0443\u0434\u0430 \u0431\u0456\u0437\u0434\u0456\u04a3 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {...}<\/tt> \u0431\u0456\u0437 \u0441\u044b\u043d\u044b\u043f\u0442\u0430 \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d \u0431\u0430\u0440\u043b\u044b\u049b \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0435\u043c\u0435\u0441 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456 \u0448\u0430\u049b\u044b\u0440\u0430 \u0430\u043b\u0430\u043c\u044b\u0437 <tt> \u0421\u0430\u043d<\/tt> , \u0441\u0438\u044f\u049b\u0442\u044b <tt> intValue()<\/tt> \u043c\u044b\u0441\u0430\u043b\u044b.\u00a0 \u0416\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430\u0441\u044b\u0437 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043c\u04b1\u043d\u0434\u0430\u0439 \u0448\u0430\u049b\u044b\u0440\u0443\u0434\u044b \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043c\u0430\u0439\u0434\u044b. \u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u0433\u0456\u043d\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043c\u04af\u0448\u0435\u043b\u0435\u0440\u0433\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443):<\/li>\n<\/ol>\n<p><tt> \u043a\u043b\u0430\u0441\u0441 Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 T \u043c\u04d9\u043d\u0456;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public Box(T t) { \u043c\u04d9\u043d = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 public increment() { \u043c\u04d9\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u0443.intValue()+1; } <b> \/\/ &lt;= \u0421\u0430\u043d\u043c\u0435\u043d \u0448\u0435\u043a\u0442\u0435\u043b\u043c\u0435\u0433\u0435\u043d \u049b\u0430\u0442\u0435 \u0431\u043e\u043b\u0430\u0434\u044b<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }\u00a0<\/tt><\/p>\n<ol>\n<ol>\n<li><b> <i> \u04e8\u0448\u0456\u0440\u0443 \u0442\u0435\u0440\u0456\u04a3\u0456\u0437. <\/i> <\/b> \u0415\u04a3 \u0441\u043e\u043b \u0436\u0430\u049b \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430 \u0442\u0438\u043f\u0442\u0456 \u04e9\u0448\u0456\u0440\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0434\u044b \u0436\u04d9\u043d\u0435 \u0431\u0430\u0439\u0442 \u043a\u043e\u0434\u044b\u043d\u0434\u0430\u0493\u044b \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u0430\u0434\u044b.\u00a0 \u0411\u0456\u0437\u0434\u0456\u04a3 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {...}<\/tt> \u0431\u0430\u0440\u043b\u044b\u049b \u043a\u04e9\u0440\u0456\u043d\u0456\u0441\u0442\u0435\u0440\u0456 <tt> \u00d0\u00a2<\/tt> \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430\u043c\u0435\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u0421\u0430\u043d<\/tt> .\u00a0 \u041c\u044b\u0441\u0430\u043b\u044b, \u0435\u0433\u0435\u0440 \u0441\u044b\u043d\u044b\u043f <tt> \u049a\u043e\u0440\u0430\u043f<\/tt> \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u0436\u0435\u043a\u0435 \u04e9\u0440\u0456\u0441\u0456 \u0431\u0430\u0440 <tt> \u00d0\u00a2<\/tt> \u0436\u04d9\u043d\u0435 \u04d9\u0434\u0456\u0441 <tt> \u0436\u0430\u0440\u0430\u043c\u0441\u044b\u0437 \u0436\u0438\u044b\u043d (T \u043c\u0430\u0437\u043c\u04b1\u043d\u044b) <\/tt> \u043e\u0441\u044b \u0436\u0435\u043a\u0435 \u04e9\u0440\u0456\u0441\u0442\u0456 \u043e\u0440\u043d\u0430\u0442\u0443 \u04af\u0448\u0456\u043d \u04e9\u0440\u0456\u0441 \u0442\u0438\u043f\u0442\u0456 \u0431\u043e\u043b\u0430\u0434\u044b <tt> \u0421\u0430\u043d<\/tt> \u0442\u04af\u0440\u0456 \u04e9\u0448\u0456\u0440\u0456\u043b\u0433\u0435\u043d\u043d\u0435\u043d \u043a\u0435\u0439\u0456\u043d \u0436\u04d9\u043d\u0435 \u04d9\u0434\u0456\u0441 \u04d9\u0434\u0456\u0441\u043a\u0435 \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u0436\u0430\u0440\u0430\u043c\u0441\u044b\u0437 \u0436\u0438\u044b\u043d (\u0441\u0430\u043d\u0434\u044b\u049b \u043c\u0430\u0437\u043c\u04b1\u043d)<\/tt> .<\/li>\n<\/ol>\n<\/ol>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440\u0434\u0456 \u04e9\u0448\u0456\u0440\u0443\u0434\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u0433\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 &#8211; <i> \u0431\u04b1\u0440\u044b\u043d<\/i> \u0442\u04af\u0440\u0456\u043d \u04e9\u0448\u0456\u0440\u0443):<br \/>\n<tt> \u043a\u043b\u0430\u0441\u044b Box&lt;<b> T \u043d\u04e9\u043c\u0456\u0440\u0434\u0456 \u043a\u0435\u04a3\u0435\u0439\u0442\u0435\u0434\u0456<\/b> &gt; {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> \u00d0\u00a2<\/b> \u049b\u04b1\u043d\u0434\u044b\u043b\u044b\u049b;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0430\u043b\u043f\u044b \u0436\u04d9\u0448\u0456\u043a(<b> \u00d0\u00a2<\/b> t) { \u043c\u04d9\u043d = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }\u00a0<\/tt><\/p>\n<ol>\n<ol>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440\u0434\u0456 \u04e9\u0448\u0456\u0440\u0443\u0434\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u0433\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 &#8211;<\/ol>\n<\/ol>\n<p><i> \u043a\u0435\u0439\u0456\u043d<\/i><\/p>\n<ol>\n<ol>\u0442\u04af\u0440\u0456\u043d \u04e9\u0448\u0456\u0440\u0443):<\/ol>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><tt> \u0441\u044b\u043d\u044b\u043f \u049b\u043e\u0440\u0430\u0431\u044b {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> \u0421\u0430\u043d<\/b> \u049b\u04b1\u043d\u0434\u044b\u043b\u044b\u049b;\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0430\u043b\u043f\u044b \u0436\u04d9\u0448\u0456\u043a(<b> \u0421\u0430\u043d<\/b> t) { \u043c\u04d9\u043d = t; }\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p>\n<ol>\u041e\u0493\u0430\u043d \u049b\u043e\u0441\u0430, \u0435\u04a3 \u0441\u043e\u043b \u0436\u0430\u049b \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0442\u044b \u0442\u04af\u0440\u0434\u0435 \u0435\u043d\u0433\u0456\u0437\u0456\u043b\u0433\u0435\u043d \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f\u043b\u0430\u0440 \u0436\u04d9\u043d\u0435 \u043a\u04e9\u043f\u0456\u0440 \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0456 \u0441\u0438\u044f\u049b\u0442\u044b \u0431\u0430\u0441\u049b\u0430 \u043e\u0440\u044b\u043d\u0434\u0430\u0440\u0434\u0430 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.<\/ol>\n<p>\u0415\u0433\u0435\u0440 \u0442\u0438\u043f\u0442\u0456\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0434\u0435 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0441\u0435, \u043e\u043b\u0430\u0440 \u049b\u0430\u043d\u0434\u0430\u0439 \u0436\u0430\u043d\u0430\u043c\u0430 \u04d9\u0441\u0435\u0440\u043b\u0435\u0440 \u0442\u0443\u0493\u044b\u0437\u0430\u0434\u044b \u043d\u0435\u043c\u0435\u0441\u0435 \u0431\u043e\u043b\u0443\u044b \u043a\u0435\u0440\u0435\u043a? \u0441\u0438\u044f\u049b\u0442\u044b \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0431\u043e\u043b\u0441\u0430 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T <b> \u0442\u0430\u043c\u0430\u0448\u0430<\/b> Number&gt; {...} <\/tt> \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0434\u0456, \u0431\u04b1\u043b \u043d\u0435\u043d\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456?\u00a0 \u0416\u043e\u0493\u0430\u0440\u0493\u044b \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456\u04a3 3 \u0436\u0430\u043d\u0430\u043c\u0430 \u04d9\u0441\u0435\u0440\u0456 \u2013 \u0448\u0435\u043a\u0442\u0435\u0443\u043b\u0456 \u0434\u0430\u043d\u0434\u0430\u0443, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043c\u04af\u0448\u0435\u0433\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443, \u0442\u04af\u0440\u0434\u0456 \u04e9\u0448\u0456\u0440\u0443 \u2013 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a \u04af\u0448\u0456\u043d \u043d\u0435\u043d\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0434\u0456?<\/p>\n<p><i> \u0428\u0435\u043a\u0442\u0435\u0443\u043b\u0456 \u0434\u0430\u043d\u0430\u043b\u0430\u0440. <\/i> \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0456 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043c\u0435\u043d \u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f\u0442\u0456 \u0434\u0430\u043d\u0430\u0437\u0430\u043b\u0430\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0442\u044b\u043d \u0442\u04af\u0440\u043b\u0435\u0440 \u0436\u0438\u044b\u043d\u044b\u043d \u0448\u0435\u043a\u0442\u0435\u0439 \u0430\u043b\u0430\u0434\u044b.\u00a0 \u041c\u044b\u0441\u0430\u043b\u044b, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0438\u044f\u049b\u0442\u044b \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u0434\u044b \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0435 \u0430\u043b\u0430\u0434\u044b <tt> Box&lt;Number&gt;<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> Box&lt;Object&gt;<\/tt> \u0430 <tt> Box&lt;T <b> \u0442\u0430\u043c\u0430\u0448\u0430<\/b> \u0421\u0430\u043d\u044b&gt; <\/tt> \u0441\u0438\u044f\u049b\u0442\u044b \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u0434\u044b \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043c\u0430\u04a3\u044b\u0437 <tt> Box&lt;Long&gt;<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 <tt> Box&lt;Short&gt;<\/tt> .\u00a0 \u0411\u04b1\u043b \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0448\u0435\u043a\u0430\u0440\u0430\u043b\u0430\u0440\u044b \u04af\u0448\u0456\u043d \u0441\u0438\u043f\u0430\u0442\u0442\u0430\u043b\u0493\u0430\u043d \u0448\u0435\u043a\u0442\u0435\u0443\u0448\u0456 \u0436\u0430\u043d\u0430\u043c\u0430 \u04d9\u0441\u0435\u0440\u0433\u0435 \u0441\u04d9\u0439\u043a\u0435\u0441 \u04d9\u0441\u0435\u0440 \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456.<\/p>\n<p><i> \u0421\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043c\u04af\u0448\u0435\u043b\u0435\u0440\u0433\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443. <\/i> \u0422\u04e9\u043c\u0435\u043d\u0433\u0456 \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456\u04a3 \u0448\u0435\u043a\u0442\u0435\u043b\u0443\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u043d \u043c\u04b1\u0440\u0430\u043b\u0430\u043d\u0493\u0430\u043d \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0435\u043d \u0431\u0430\u0441\u049b\u0430 \u043d\u0430\u049b\u0442\u044b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u043c\u0435\u0439\u0434\u0456 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> . \u043c\u044b\u0441\u0430\u043b\u044b\u043d\u0434\u0430 <tt> Box&lt;T <b> \u0442\u0430\u043c\u0430\u0448\u0430<\/b> \u0421\u0430\u043d\u044b&gt; <\/tt> \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u0440\u0456 <tt> \u0421\u0430\u043d<\/tt> \u043e\u0440\u0442\u0430\u049b \u0435\u0448\u0442\u0435\u04a3\u0435 \u0436\u043e\u049b, \u0442\u0435\u043a \u043e\u043b\u0430\u0440\u0434\u044b\u04a3 \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u043b\u044b\u049b \u0442\u0438\u043f\u0442\u0435\u0440\u0456, \u0434\u0435\u043c\u0435\u043a, \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> .\u00a0 \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u04af\u0440 \u04e9\u0440\u0456\u0441\u0456 \u0434\u0435\u043f \u0435\u0441\u0435\u043f\u0442\u0435\u0439 \u0430\u043b\u043c\u0430\u0439\u0434\u044b <tt> \u00d0\u00a2<\/tt> \u0442\u04af\u0440\u0456\u043d\u0435 \u0436\u0430\u0442\u0430\u0434\u044b <tt> \u0421\u0430\u043d<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 \u043e\u043d\u044b\u04a3 \u0456\u0448\u043a\u0456 \u0442\u04af\u0440\u0456.\u00a0 \u041e\u043d\u044b\u04a3 \u043e\u0440\u043d\u044b\u043d\u0430, \u0442\u04af\u0440 \u04e9\u0440\u0456\u0441\u0456 <tt> \u00d0\u00a2<\/tt> \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0456 \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d <tt> \u0421\u0430\u043d<\/tt> , \u0441\u0438\u044f\u049b\u0442\u044b <tt> \u0421\u0435\u0440\u0438\u044f\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b<\/tt> \u043d\u0435\u043c\u0435\u0441\u0435 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> .\u00a0 \u0441\u0438\u044f\u049b\u0442\u044b \u04d9\u0434\u0456\u0441\u0442\u0456 \u0448\u0430\u049b\u044b\u0440\u0443 <tt> intValue()<\/tt> \u0435\u043d\u0434\u0456 \u0442\u0438\u043f\u0456 \u049b\u0430\u0443\u0456\u043f\u0441\u0456\u0437 \u0435\u043c\u0435\u0441 \u0436\u04d9\u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043e\u043d\u044b \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043c\u0430\u0443\u0493\u0430 \u043c\u04d9\u0436\u0431\u04af\u0440 \u0431\u043e\u043b\u0430\u0434\u044b. \u041d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456\u043d\u0434\u0435, \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0448\u0435\u043a\u0442\u0435\u043b\u0443\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u0430 \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d\u0434\u0430\u0440\u0434\u0430\u043d \u0442\u044b\u0441 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043c\u04af\u0448\u0435\u043b\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u043c\u0435\u0439\u0434\u0456. <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u0436\u04d9\u043d\u0435 \u043e\u0441\u044b\u043b\u0430\u0439\u0448\u0430 \u00ab\u0448\u0435\u043a\u0441\u0456\u0437\u00bb \u04d9\u0441\u0435\u0440\u0433\u0435 \u0438\u0435.<\/p>\n<p><i> \u04e8\u0448\u0456\u0440\u0443 \u0442\u0435\u0440\u0456\u04a3\u0456\u0437<\/i> .\u00a0 \u041b\u043e\u0433\u0438\u043a\u0430\u043d\u044b\u04a3 \u043e\u0441\u044b \u0441\u044b\u0437\u044b\u0493\u044b\u043d\u0430\u043d \u043a\u0435\u0439\u0456\u043d \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u043a\u04e9\u0440\u0456\u043d\u0456\u0441\u0442\u0435\u0440\u0456\u043d \u043e\u043d\u044b\u04a3 \u0441\u043e\u043b \u0436\u0430\u049b \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456\u043c\u0435\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u0443 \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b \u0436\u043e\u049b.\u00a0 \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0441\u0438\u044f\u049b\u0442\u044b \u04d9\u0434\u0456\u0441\u0442\u0456 \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u0443 <tt> \u049b\u043e\u0440\u0430\u043f(<b> \u00d0\u00a2<\/b> \u0442) <\/tt> \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 <tt> \u049b\u043e\u0440\u0430\u043f(<b> \u0421\u0430\u043d<\/b> \u0442)<\/tt> \u0435\u0441\u043a\u0435\u0440\u0441\u0435\u043a, \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b \u0436\u043e\u049b <tt> \u00d0\u00a2<\/tt> \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0456\u043c\u0435\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u0421\u0430\u043d<\/tt> .\u00a0 \u0410\u043d <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u0438\u043d\u0441\u0442\u0430\u043d\u0446\u0438\u044f\u0434\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0493\u0430 \u0434\u04b1\u0440\u044b\u0441 \u0431\u0435\u0440\u0456\u043b\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d <tt> Box&lt;Object&gt;<\/tt> \u0436\u04d9\u043d\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u043e\u043d\u044b \u049b\u0430\u0431\u044b\u043b\u0434\u0430\u043c\u0430\u0439\u0434\u044b.\u00a0 \u0411\u04b1\u043b \u04e9\u043b\u0456 \u049b\u0430\u0442\u0435 \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456.\u00a0\u00a0 \u041e\u0441\u044b\u043b\u0430\u0439\u0448\u0430, \u0442\u04af\u0440\u0434\u0456 \u04e9\u0448\u0456\u0440\u0443 \u0442\u04af\u0440\u0434\u0435\u0433\u0456 \u0430\u0439\u043d\u044b\u043c\u0430\u043b\u044b\u043d\u044b\u04a3 \u0431\u0430\u0440\u043b\u044b\u049b \u043e\u049b\u0438\u0493\u0430\u043b\u0430\u0440\u044b\u043d \u0430\u0443\u044b\u0441\u0442\u044b\u0440\u0430\u0434\u044b<tt> \u00d0\u00a2<\/tt> \u0442\u04af\u0440\u0456 \u0431\u043e\u0439\u044b\u043d\u0448\u0430 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> , \u0436\u04d9\u043d\u0435 \u043e\u043d\u044b\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456 \u0431\u043e\u0439\u044b\u043d\u0448\u0430 \u0435\u043c\u0435\u0441.\u00a0 \u0422\u0430\u0493\u044b \u0434\u0430, \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0430\u0440\u0430 \u00ab\u0448\u0435\u043a\u0441\u0456\u0437\u00bb \u0441\u0438\u044f\u049b\u0442\u044b \u04d9\u0441\u0435\u0440\u0433\u0435 \u0438\u0435 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u0415\u0433\u0435\u0440 \u0435\u043a\u0435\u0443\u0456 \u0434\u0435 \u0442\u04e9\u043c\u0435\u043d \u0431\u043e\u043b\u0441\u0430, \u0431\u04b1\u043b \u043d\u0435\u043d\u0456 \u0431\u0456\u043b\u0434\u0456\u0440\u0435\u0442\u0456\u043d\u0456\u043d \u0431\u0456\u043b\u0433\u0456\u04a3\u0456\u0437 \u043a\u0435\u043b\u0435 \u043c\u0435? <i> _\u0436\u04d9\u043d\u0435_<\/i> \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0442\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u0434\u0456 \u043c\u0435?\u00a0\u00a0 \u0416\u0435\u043a\u0435 \u04e9\u0437\u0456\u043c \u0431\u04b1\u043b \u0442\u0443\u0440\u0430\u043b\u044b \u043e\u0439\u043b\u0430\u0493\u044b\u043c \u0434\u0430 \u043a\u0435\u043b\u043c\u0435\u0439\u0434\u0456 \u0436\u04d9\u043d\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0441\u0435\u04a3\u0456\u0437, \u043e\u043d\u044b \u00ab\u0431\u0430\u0441\u049b\u0430\u0440\u0443 \u043c\u04af\u043c\u043a\u0456\u043d \u0435\u043c\u0435\u0441\u00bb \u0434\u0435\u0433\u0435\u043d\u0433\u0435 \u0436\u0456\u0431\u0435\u0440\u0433\u0456\u043c \u043a\u0435\u043b\u0435\u0434\u0456.<\/p>\n<p>\u0422\u04af\u043f\u043d\u04b1\u0441\u049b\u0430: \u043c\u04b1\u043d\u044b\u04a3 \u0431\u04d9\u0440\u0456 \u00ab<tt> \u0442\u0430\u043c\u0430\u0448\u0430<\/tt> \u00ab\u0421\u0456\u0437\u0434\u0456 \u0441\u0430\u0442\u044b\u043f \u0430\u043b\u043c\u0430\u049b\u00bb &#8211; \u0431\u04b1\u043b \u0442\u0435\u043a \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u0440 \u0431\u043e\u043b\u0430\u0442\u044b\u043d \u0448\u0435\u043a\u0442\u0435\u0443 <tt> \u0421\u0430\u043d<\/tt> \u0442\u0438\u043f\u0442\u0456\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0442\u0435\u0440 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.\u00a0 \u0422\u0456\u043f\u0442\u0456 \u0431\u04b1\u043b \u0436\u0438\u0456 \u0434\u04b1\u0440\u044b\u0441 \u0442\u04af\u0441\u0456\u043d\u0456\u043b\u043c\u0435\u0439\u0434\u0456.\u00a0 \u0411\u04b1\u043b \u043c\u04b1\u043d\u044b \u0431\u0456\u043b\u0434\u0456\u0440\u043c\u0435\u0439\u0434\u0456 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u0441\u0443\u043f\u0435\u0440 \u0441\u0430\u043d\u044b&gt; {...}<\/tt> \u0442\u0435\u043a \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u0440\u0456\u043d\u0456\u04a3 \u0434\u0430\u043d\u0430\u043b\u0430\u0440\u044b\u043d \u049b\u0430\u043c\u0442\u0438\u0434\u044b <tt> \u0421\u0430\u043d<\/tt> .\u00a0 \u041c\u04af\u043b\u0434\u0435\u043c \u043a\u0435\u0440\u0456\u0441\u0456\u043d\u0448\u0435 &#8211; \u0442\u04e9\u043c\u0435\u043d\u0434\u0435\u0433\u0456 \u043c\u044b\u0441\u0430\u043b \u043a\u04e9\u0440\u0441\u0435\u0442\u043a\u0435\u043d\u0434\u0435\u0439!<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440\u0434\u0456 \u04e9\u0448\u0456\u0440\u0443\u0434\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u0433\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 &#8211; <i> \u0431\u04b1\u0440\u044b\u043d<\/i> \u0442\u04af\u0440\u0456\u043d \u04e9\u0448\u0456\u0440\u0443):<\/p>\n<div style=\"margin-left:40px;\">\n<blockquote><p><tt> \u043a\u043b\u0430\u0441\u044b Box&lt;<b> T \u0441\u0443\u043f\u0435\u0440 \u0441\u0430\u043d\u044b<\/b> &gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> \u00d0\u00a2<\/b> \u049b\u04b1\u043d\u0434\u044b\u043b\u044b\u049b;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0430\u043b\u043f\u044b \u0436\u04d9\u0448\u0456\u043a(<b> \u00d0\u00a2<\/b> t) { \u043c\u04d9\u043d = t; }<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<\/div>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04af\u0440\u0434\u0456 \u04e9\u0448\u0456\u0440\u0443\u0434\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u0433\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 &#8211; <i> \u043a\u0435\u0439\u0456\u043d<\/i> \u0442\u04af\u0440\u0456\u043d \u04e9\u0448\u0456\u0440\u0443):<\/p>\n<div style=\"margin-left:40px;\">\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u049b\u043e\u0440\u0430\u0431\u044b {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> \u041d\u044b\u0441\u0430\u043d<\/b> \u049b\u04b1\u043d\u0434\u044b\u043b\u044b\u049b;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0430\u043b\u043f\u044b \u0436\u04d9\u0448\u0456\u043a(<b> \u041d\u044b\u0441\u0430\u043d<\/b> t) { \u043c\u04d9\u043d = t; }<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<\/div>\n<p>\u0410 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T <b> \u0442\u0430\u043c\u0430\u0448\u0430<\/b> Number&gt; {...} <\/tt> \u04e9\u0448\u0456\u0440\u0443 \u0442\u04af\u0440\u0456 \u0431\u043e\u0439\u044b\u043d\u0448\u0430 \u0430 \u0442\u04af\u0440\u0456\u043d\u0435 \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u049a\u043e\u0440\u0430\u043f<\/tt> \u049b\u04b1\u0440\u0430\u043c\u044b\u043d\u0434\u0430 \u0430 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u04e9\u0440\u0456\u0441 \u0436\u04d9\u043d\u0435 \u043e\u043d\u044b\u04a3 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u049a\u043e\u0440\u0430\u043f(t \u043d\u044b\u0441\u0430\u043d\u044b)<\/tt> . \u0411\u04b1\u043b \u0430-\u0434\u0430\u043d \u0442\u04af\u0431\u0435\u0433\u0435\u0439\u043b\u0456 \u0435\u0440\u0435\u043a\u0448\u0435\u043b\u0435\u043d\u0435\u0434\u0456 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T <b> \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b<\/b> Number&gt; {...}<\/tt> , \u043e\u043b \u0430 \u0442\u0456\u043b\u0456\u043d\u0435 \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u049a\u043e\u0440\u0430\u043f<\/tt> \u049b\u04b1\u0440\u0430\u043c\u044b\u043d\u0434\u0430 \u0430 <tt> \u0421\u0430\u043d<\/tt> \u04e9\u0440\u0456\u0441 \u0436\u04d9\u043d\u0435 \u043e\u043d\u044b\u04a3 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0430\u0443\u0434\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> \u049a\u043e\u0440\u0430\u043f(t \u0441\u0430\u043d\u044b)<\/tt> . \u0414\u0435\u043c\u0435\u043a, \u0410 <tt> Box&lt;Number&gt;<\/tt> \u0430-\u0434\u0430\u043d \u0442\u0443\u044b\u043d\u0434\u0430\u0493\u0430\u043d<tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u043a\u0435\u04a3\u0435\u0439\u0442\u0456\u043b\u0433\u0435\u043d Number&gt; {...}<\/tt> \u0430-\u0434\u0430\u043d \u04e9\u0437\u0433\u0435\u0448\u0435 \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456 <tt> Box&lt;Number&gt;<\/tt> \u0430 <tt> \u0441\u044b\u043d\u044b\u043f Box&lt;T \u0441\u0443\u043f\u0435\u0440 \u0441\u0430\u043d\u044b&gt; {...}<\/tt> , \u0431\u04b1\u043b \u0448\u0430\u0442\u0430\u0441\u0442\u044b\u0440\u0443\u0493\u0430 \u04d9\u043a\u0435\u043b\u0443\u0456 \u043c\u04af\u043c\u043a\u0456\u043d.\u00a0 \u041e\u0441\u044b \u0441\u0435\u0431\u0435\u043f\u0442\u0456 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0435\u0440 \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440\u0434\u044b\u04a3 \u0442\u0438\u043f\u0442\u0456\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0434\u0435 \u043c\u0430\u0493\u044b\u043d\u0430\u0441\u044b \u0436\u043e\u049b.<\/p>\n<p>&nbsp;<\/p>\n<hr width=\"100%\" \/>\n<p>&nbsp;<\/p>\n<p><b>\u04d8\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0456 \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456<\/b><\/p>\n<p>\u04d8\u0434\u0456\u0441\u0442\u0435\u0440\u043c\u0435\u043d \u0436\u04d9\u043d\u0435 \u043e\u043b\u0430\u0440\u0434\u044b\u04a3 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0442\u04af\u0440\u043b\u0435\u0440\u0456\u043c\u0435\u043d \u0431\u0456\u0440\u0433\u0435 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456 \u0431\u0430\u0440 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u043a\u0435\u0439\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u044b \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456 \u0431\u0430\u0440 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0435\u043d \u043f\u0430\u0439\u0434\u0430 \u0430\u043b\u0430\u0442\u044b\u043d \u04d9\u0434\u0456\u0441):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u0436\u04b1\u0431\u044b&lt;X,Y&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 X \u0431\u0456\u0440\u0456\u043d\u0448\u0456;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 Y \u0441\u0435\u043a\u0443\u043d\u0434;<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> \u00a0\u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b &lt;<b> \u0421\u0443\u043f\u0435\u0440 X<\/b> ,<b> B \u0441\u0443\u043f\u0435\u0440 Y<\/b> &gt; B addToMap(Map&lt;A,B&gt; \u043a\u0430\u0440\u0442\u0430\u0441\u044b) { \/\/ \u049b\u0430\u0442\u0435: \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456 \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d \u0435\u043c\u0435\u0441<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return map.put(\u0431\u0456\u0440\u0456\u043d\u0448\u0456, \u0435\u043a\u0456\u043d\u0448\u0456);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u0441\u044b\u043d\u044b\u043f \u0441\u044b\u043d\u0430\u0493\u044b {\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; \u0436\u04b1\u043f = \u0436\u0430\u04a3\u0430 Pair&lt;&gt;(\"ABC\",42L);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Map&lt;CharSequence, Number&gt; \u043a\u0430\u0440\u0442\u0430\u0441\u044b = HashMap&lt;CharSequence, Number&gt;();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u0421\u0430\u043d \u0441\u0430\u043d\u044b = pair.addToMap(\u043a\u0430\u0440\u0442\u0430);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>The <tt> addToMap()<\/tt> \u04d9\u0434\u0456\u0441 \u0436\u04b1\u043f\u0442\u044b\u04a3 \u043c\u0430\u0437\u043c\u04b1\u043d\u044b\u043d \u043a\u0430\u0440\u0442\u0430\u0493\u0430 \u049b\u043e\u0441\u0430\u0434\u044b.\u00a0 \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u0440\u0456\u043d \u0441\u0430\u049b\u0442\u0430\u0439 \u0430\u043b\u0430\u0442\u044b\u043d \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u043a\u0430\u0440\u0442\u0430 <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u0436\u0430\u0441\u0430\u0439\u0442\u044b\u043d \u0435\u0434\u0456.\u00a0 \u041a\u0430\u0440\u0442\u0430\u043d\u044b\u04a3 <tt> \u049b\u043e\u044e()<\/tt> \u04d9\u0434\u0456\u0441 \u043a\u0430\u0440\u0442\u0430\u0434\u0430 \u043a\u0456\u043b\u0442 \u04af\u0448\u0456\u043d \u043a\u0456\u043b\u0442-\u043c\u04d9\u043d \u0436\u0430\u0437\u0431\u0430\u0441\u044b \u0431\u04b1\u0440\u044b\u043d\u043d\u0430\u043d \u0431\u0430\u0440 \u0431\u043e\u043b\u0441\u0430, \u0431\u0435\u0440\u0456\u043b\u0433\u0435\u043d \u043a\u0456\u043b\u0442 \u04af\u0448\u0456\u043d \u043a\u0430\u0440\u0442\u0430\u0434\u0430 \u0442\u0430\u0431\u044b\u043b\u0493\u0430\u043d \u043c\u04d9\u043d\u0434\u0456 \u049b\u0430\u0439\u0442\u0430\u0440\u0430\u0434\u044b.\u00a0 \u041a\u0430\u0440\u0442\u0430\u043d\u044b\u04a3 \u049b\u0430\u0439\u0442\u0430\u0440\u044b\u043b\u0430\u0442\u044b\u043d \u043c\u04d9\u043d\u0456 <tt> \u049b\u043e\u044e()<\/tt> \u04d9\u0434\u0456\u0441\u0456\u043d\u0435\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u044b\u043b\u0430\u0434\u044b <tt> addToMap()<\/tt> \u04d9\u0434\u0456\u0441.\u00a0 \u0411\u04b1\u043b \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u0430 \u04d9\u0434\u0456\u0441\u0442\u0456 \u0436\u043e\u0493\u0430\u0440\u044b\u0434\u0430 \u043a\u04e9\u0440\u0441\u0435\u0442\u0456\u043b\u0433\u0435\u043d\u0434\u0435\u0439 \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u0443 \u049b\u0430\u0436\u0435\u0442: \u041a\u0430\u0440\u0442\u0430 \u0436\u04b1\u043f \u0442\u0438\u043f\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0456\u04a3 \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u0440\u0456\u043c\u0435\u043d \u0436\u04d9\u043d\u0435 <tt> addToMap()<\/tt> \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456 \u043a\u0430\u0440\u0442\u0430\u043d\u044b\u04a3 \u043c\u04d9\u043d \u0442\u04af\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d\u0434\u0435 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u043a\u0442\u0435\u0440\u0433\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0431\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d\u0434\u0456\u043a\u0442\u0435\u043d, \u0431\u0456\u0437\u0433\u0435 \u0436\u04b1\u043c\u044b\u0441\u0442\u044b \u0448\u0435\u0448\u0443 \u049b\u0430\u0436\u0435\u0442.<\/p>\n<p>\u041e\u0439\u0493\u0430 \u043a\u0435\u043b\u0435\u0442\u0456\u043d \u0436\u04b1\u043c\u044b\u0441\u0442\u044b\u04a3 \u0431\u0456\u0440\u0456 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b, \u0441\u0435\u0431\u0435\u0431\u0456 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043b\u0430\u0440\u0434\u044b\u04a3 \u0442\u04e9\u043c\u0435\u043d\u0433\u0456 \u0448\u0435\u0433\u0456 \u0431\u043e\u043b\u0443\u044b \u043c\u04af\u043c\u043a\u0456\u043d.\u00a0 \u041c\u04b1\u043d\u0434\u0430 \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043d\u044b \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u0442\u044b\u043d \u0436\u04b1\u043c\u044b\u0441 \u0431\u0430\u0440.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430\u043b\u0430\u0440\u0434\u044b \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u0442\u044b\u043d \u0430\u043b\u0434\u044b\u04a3\u0493\u044b \u043c\u044b\u0441\u0430\u043b \u04af\u0448\u0456\u043d \u0436\u04b1\u043c\u044b\u0441\u0442\u044b \u0448\u0435\u0448\u0443):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u0436\u04b1\u0431\u044b&lt;X,Y&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 X \u0431\u0456\u0440\u0456\u043d\u0448\u0456;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 Y \u0441\u0435\u043a\u0443\u043d\u0434;<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> \u00a0\u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> \u041d\u044b\u0441\u0430\u043d<\/b> addToMap(Map&lt;<b> ? \u0421\u0443\u043f\u0435\u0440 X<\/b> , <b> ? \u0441\u0443\u043f\u0435\u0440 \u042b<\/b> &gt; \u043a\u0430\u0440\u0442\u0430\u0441\u044b) {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return map.put(\u0431\u0456\u0440\u0456\u043d\u0448\u0456, \u0435\u043a\u0456\u043d\u0448\u0456);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u0441\u044b\u043d\u044b\u043f \u0441\u044b\u043d\u0430\u0493\u044b {\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; \u0436\u04b1\u043f = \u0436\u0430\u04a3\u0430 Pair&lt;&gt;(\"ABC\",42L);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Map&lt;CharSequence, Number&gt; \u043a\u0430\u0440\u0442\u0430\u0441\u044b = HashMap&lt;CharSequence, Number&gt;();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u0421\u0430\u043d \u0441\u0430\u043d\u044b = <b> (\u0441\u0430\u043d)<\/b> pair.addToMap(\u043a\u0430\u0440\u0442\u0430);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u041e\u043b \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439\u0434\u0456, \u0442\u0435\u043a \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456\u043d \u049b\u0430\u043b\u0430\u0493\u0430\u043d\u0434\u0430\u0439 \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u0443 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u0433\u0456 \u0436\u043e\u049b.\u00a0 \u0411\u04b1\u043b \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0456 \u0431\u043e\u043b\u0430\u0440 \u0435\u0434\u0456 <tt> \u042b<\/tt> \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043a\u0430\u0440\u0442\u0430 \u0442\u04af\u0440\u0456\u043d\u0435\u043d \u0442\u04af\u0441\u0456\u0440\u0435\u0434\u0456, \u0431\u0456\u0440\u0430\u049b \u043e\u043d\u044b \u043a\u04e9\u0440\u0441\u0435\u0442\u0443 \u04af\u0448\u0456\u043d \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0436\u043e\u049b.\u00a0 \u0411\u0456\u0437 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456\u043d \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u043c\u0430\u0443\u044b\u043c\u044b\u0437 \u043a\u0435\u0440\u0435\u043a &#8220;<tt> ? \u0441\u0443\u043f\u0435\u0440 \u042b<\/tt> &#8220;, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 &#8220;<tt> ? \u0441\u0443\u043f\u0435\u0440 \u042b<\/tt> &#8221; \u049b\u043e\u0439\u044b\u043b\u043c\u0430\u043b\u044b \u0442\u0430\u04a3\u0431\u0430, \u0442\u04af\u0440 \u0435\u043c\u0435\u0441, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0440\u04b1\u049b\u0441\u0430\u0442 \u0435\u0442\u0456\u043b\u043c\u0435\u0439\u0434\u0456. \u0411\u0456\u0437\u0434\u0435 \u0442\u0430\u04a3\u0434\u0430\u0443 \u0436\u043e\u049b \u0436\u04d9\u043d\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u043a\u0435\u0440\u0435\u043a <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u043e\u0440\u043d\u044b\u043d\u0430 \u0431\u0456\u0437\u0434\u0456\u04a3 \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435.\u00a0 \u0411\u04b1\u043b \u04e9\u0442\u0435 \u043d\u0430\u049b\u0442\u044b \u0435\u043c\u0435\u0441 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456 \u04e9\u0437 \u043a\u0435\u0437\u0435\u0433\u0456\u043d\u0434\u0435 \u049b\u043e\u04a3\u044b\u0440\u0430\u0443 \u0448\u0430\u043b\u0443\u0448\u044b\u043b\u0430\u0440\u044b\u043d \u043c\u04d9\u0436\u0431\u04af\u0440\u043b\u0435\u0439\u0434\u0456 <tt> addToMap()<\/tt> \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u043c\u04d9\u043d\u0456\u043d \u0442\u04e9\u043c\u0435\u043d\u0433\u0435 \u0430\u0439\u043d\u0430\u043b\u0434\u044b\u0440\u0443 \u04d9\u0434\u0456\u0441\u0456 <tt> \u041d\u044b\u0441\u0430\u043d<\/tt> \u043e\u043d\u044b\u04a3 \u043d\u0430\u049b\u0442\u044b \u0442\u04af\u0440\u0456\u043d\u0435.\u00a0 \u0411\u04b1\u043b \u0434\u04d9\u043b \u0431\u0456\u0437\u0434\u0456\u04a3 \u043e\u0439\u044b\u043c\u044b\u0437\u0434\u0430 \u0431\u043e\u043b\u0493\u0430\u043d \u0436\u043e\u049b.<\/p>\n<p>\u0422\u0430\u0493\u044b \u0431\u0456\u0440 \u0448\u0435\u0448\u0456\u043c &#8211; \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0434\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443.\u00a0 \u041c\u04b1\u043d\u0434\u0430 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u043e\u0440\u043d\u044b\u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u043f\u0435\u043d \u0436\u04b1\u043c\u044b\u0441 \u0431\u0430\u0440.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441\u0442\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043f \u0430\u043b\u0434\u044b\u04a3\u0493\u044b \u043c\u044b\u0441\u0430\u043b \u04af\u0448\u0456\u043d \u0436\u04b1\u043c\u044b\u0441\u0442\u044b \u0448\u0435\u0448\u0443):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u0436\u04b1\u0431\u044b&lt;X,Y&gt; {<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 X \u0431\u0456\u0440\u0456\u043d\u0448\u0456;<\/tt><br \/>\n<tt> \u00a0\u00a0 \u0436\u0435\u043a\u0435 Y \u0441\u0435\u043a\u0443\u043d\u0434;<\/tt><br \/>\n<tt> \u00a0\u00a0 ...<\/tt><br \/>\n<tt> \u00a0\u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b<\/b> &lt;<b> \u0410<\/b> ,<b> \u0411<\/b> , X <b> \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b \u0410<\/b> , \u042b <b> \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b \u0412<\/b> &gt; B addToMap(Pair&lt;X,Y&gt; \u0436\u04b1\u043f, Map&lt;<b> \u0410<\/b> ,<b> \u0411<\/b> &gt; \u043a\u0430\u0440\u0442\u0430\u0441\u044b) {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 map.put(\u0436\u04b1\u043f.\u0431\u0456\u0440\u0456\u043d\u0448\u0456,\u0436\u04b1\u043f.\u0435\u043a\u0456\u043d\u0448\u0456);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><br \/>\n<tt> \u0441\u044b\u043d\u044b\u043f \u0441\u044b\u043d\u0430\u0493\u044b {\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; \u0436\u04b1\u043f = \u0436\u0430\u04a3\u0430 Pair&lt;&gt;(\"ABC\",42L);<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 Map&lt;CharSequence, Number&gt; \u043a\u0430\u0440\u0442\u0430\u0441\u044b = HashMap&lt;CharSequence, Number&gt;();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0 \u0421\u0430\u043d \u0441\u0430\u043d\u044b = <b> \u0416\u04b1\u043f<\/b> .addToMap(<b> \u0436\u04b1\u043f<\/b> ,\u043a\u0430\u0440\u0442\u0430);<\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u0416\u0430\u043b\u043f\u044b <tt> addToMap()<\/tt> \u04d9\u0434\u0456\u0441\u0442\u0456\u04a3 \u0442\u04e9\u0440\u0442 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456 \u0431\u0430\u0440: \u0435\u043a\u0456 \u0442\u043e\u043b\u0442\u044b\u0440\u0493\u044b\u0448 <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u0436\u04b1\u043f \u0442\u04af\u0440\u0456 \u0436\u04d9\u043d\u0435 \u0435\u043a\u0456 \u0442\u043e\u043b\u0442\u044b\u0440\u0493\u044b\u0448 \u04af\u0448\u0456\u043d <tt> \u0410<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u0411 <\/tt> \u043a\u0430\u0440\u0442\u0430 \u0442\u04af\u0440\u0456 \u04af\u0448\u0456\u043d. <tt> \u0410<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u0411<\/tt> \u0441\u0443\u043f\u0435\u0440\u0442\u0438\u043f\u0442\u0435\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> , \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u00a0 -\u043c\u0435\u043d \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u043d\u0430\u0434\u044b <tt> \u0410<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u0411<\/tt> \u043e\u043b\u0430\u0440\u0434\u044b\u04a3 \u0436\u043e\u0493\u0430\u0440\u0493\u044b \u0448\u0435\u043a\u0430\u0440\u0430\u043b\u0430\u0440\u044b \u0440\u0435\u0442\u0456\u043d\u0434\u0435. (\u0416\u0430\u043b\u043f\u044b \u04d9\u0434\u0456\u0441 \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456\u043d \u0435\u0441\u043a\u0435\u0440\u0456\u04a3\u0456\u0437 <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u0435\u0448 \u049b\u0430\u0442\u044b\u0441\u044b \u0436\u043e\u049b <tt> \u0416\u04b1\u043f<\/tt> \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456.\u00a0 \u0415\u0441\u0456\u043c\u0434\u0435\u0440\u0456 <tt> X<\/tt> \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 <tt> \u042b<\/tt> \u0436\u04b1\u043f \u0442\u04af\u0440\u0456\u043d\u0456\u04a3 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043b\u0435\u0440\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043e\u04a3\u0430\u0439 \u0442\u0430\u043d\u044b\u043b\u0443\u044b \u04af\u0448\u0456\u043d \u0436\u0430\u043b\u043f\u044b \u04d9\u0434\u0456\u0441 \u04af\u0448\u0456\u043d \u049b\u0430\u0439\u0442\u0430 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u043b\u0430\u0434\u044b. \u0422\u04e9\u0440\u0442 \u0442\u0438\u043f\u0442\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430 \u043e\u0442\u044b\u0440\u044b\u043f, \u0431\u0456\u0437 \u043d\u0430\u049b\u0442\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443 \u0442\u04af\u0440\u0456\u043d \u049b\u0430\u043b\u0430\u0493\u0430\u043d\u0434\u0430\u0439 \u0436\u0430\u0440\u0438\u044f\u043b\u0430\u0439 \u0430\u043b\u0430\u043c\u044b\u0437: \u043e\u043b \u043a\u0430\u0440\u0442\u0430\u043d\u044b\u04a3 \u043c\u04d9\u043d \u0442\u04af\u0440\u0456\u043c\u0435\u043d \u0431\u0456\u0440\u0434\u0435\u0439.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0436\u0430\u043b\u043f\u044b \u043a\u043b\u0430\u0441\u0441\u0442\u044b\u04a3 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0456\u043d\u0434\u0435 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0437\u0430\u04a3\u0441\u044b\u0437 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443):<\/p>\n<blockquote><p><tt> \u041a\u0435\u0439\u0431\u0456\u0440 \u0441\u044b\u043d\u044b\u043f<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04e9\u0440\u0456\u0441, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u04d9\u0434\u0456\u0441<\/i><br \/>\n<tt> \u00a0 <b> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b<\/b> {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> &gt; \u0441\u044b\u043d\u0430\u0493\u044b = \u0436\u0430\u04a3\u0430 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> &gt;(); <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b<\/b> <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> \u0493\u0430\u043b\u0430\u043c\u0434\u044b\u049b \u0430\u049b\u043f\u0430\u0440\u0430\u0442;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a\u00a0 <b> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b<\/b> <b> <span style=\"color:#000099;\"> \u00d0\u00a2 <\/span> <\/b> getGlobalInfo() {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0493\u0430\u043b\u0430\u043c\u0434\u044b\u049b \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04e9\u0440\u0456\u0441, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u04d9\u0434\u0456\u0441<\/i><br \/>\n<tt> \u00a0 {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> &gt; \u0441\u044b\u043d\u0430\u0493\u044b = \u0436\u0430\u04a3\u0430 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> &gt;();<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> localInfo;<\/tt><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getLocalInfo() {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 localInfo \u049b\u0430\u0439\u0442\u0430\u0440\u0443;<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0456<\/i><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b<\/b> <b> \u0441\u044b\u043d\u044b\u043f<\/b> \u0421\u04d9\u0442\u0441\u0456\u0437\u0434\u0456\u043a \u0435\u0440\u0435\u043a\u0448\u0435 \u0436\u0430\u0493\u0434\u0430\u0439\u0434\u044b \u04b1\u0437\u0430\u0440\u0442\u0430\u0434\u044b {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0436\u0435\u043a\u0435 \u0444\u0438\u043d\u0430\u043b <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> \u0430\u049b\u043f\u0430\u0440\u0430\u0442;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u0441\u04d9\u0442\u0441\u0456\u0437\u0434\u0456\u043a (<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> t) { info = t; }\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getInfo() { \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/b> \u041a\u04e9\u0448\u0456\u0440\u0456\u043b\u0435\u0442\u0456\u043d {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> \u043a\u04e9\u0448\u0456\u0440\u043c\u0435();\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;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> enum<\/b> \u041c\u0435\u043c\u043b\u0435\u043a\u0435\u0442 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u0416\u0430\u0440\u0430\u043c\u0434\u044b, \u0436\u0430\u0440\u0430\u043c\u0441\u044b\u0437;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5 <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> \u0430\u049b\u043f\u0430\u0440\u0430\u0442; \/\/ \u049b\u0430\u0442\u0435<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 public void setInfo(<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> t) { info = t; } <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getInfo() { \u0430\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440<\/i><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> \u0441\u044b\u043d\u044b\u043f<\/b> \u0410\u043a\u0441\u0435\u0441\u0441\u043e\u0440 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getInfo() {localInfo \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u041c\u044b\u0441\u0430\u043b \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0436\u0430\u043b\u043f\u044b \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0456\u043d\u0434\u0435 \u049b\u043e\u043b\u0434\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u043c\u0430\u0439\u0442\u044b\u043d\u044b\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u0435\u0434\u0456.\u00a0 \u041e\u043b \u0441\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440 \u043c\u0435\u043d \u043d\u04e9\u043c\u0456\u0440 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u0438\u043f\u0442\u0456 \u043c\u04af\u0448\u0435\u043b\u0435\u0440\u0456 \u0431\u043e\u043b\u044b\u043f \u0435\u0441\u0435\u043f\u0442\u0435\u043b\u0435\u0442\u0456\u043d\u0456\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u0435\u0434\u0456.\u00a0 \u0422\u0435\u043a \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440, \u044f\u0493\u043d\u0438 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u049b\u043e\u0440\u0448\u0430\u043b\u0493\u0430\u043d \u0436\u0430\u043b\u043f\u044b \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430 \u0430\u043b\u0430\u0434\u044b.<\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0442\u04af\u0440\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d\u0456\u04a3 \u0430\u0443\u049b\u044b\u043c\u044b \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u04e9\u0440\u0456\u0441\u0442\u0435\u0440\u0434\u0456 \u043d\u0435\u043c\u0435\u0441\u0435 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440\u0434\u0456 \u049b\u043e\u0441\u043f\u0430\u0493\u0430\u043d\u0434\u0430, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0456\u04a3 \u0442\u043e\u043b\u044b\u049b \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430\u0441\u044b \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.\u00a0 \u0421\u0435\u0431\u0435\u0431\u0456 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435 \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u0493\u0430\u043d \u04e9\u0440\u0456\u0441\u0442\u0435\u0440 \u043c\u0435\u043d \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u043b\u0435\u0440 \u0436\u0430\u043d\u0430\u043c\u0430 \u0442\u04af\u0440\u0434\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0436\u0430\u043b\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0437\u0430\u04a3\u0441\u044b\u0437 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443):<\/p>\n<blockquote><p><tt> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0456 SomeInterface<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u04e9\u0440\u0456\u0441<\/i><br \/>\n<tt> \u00a0 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> &gt; \u043c\u04d9\u043d\u0456 = \u0436\u0430\u04a3\u0430 SomeClass&lt;<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> &gt;();\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0442\u04af\u0440\u0456<\/i><br \/>\n<tt> \u00a0 <b> \u0441\u044b\u043d\u044b\u043f<\/b> \u0410\u043a\u0441\u0435\u0441\u0441\u043e\u0440 {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2 <\/span> <\/b> getInfo() {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b> <span style=\"color:#660000;\"> \/\/ \u049b\u0430\u0442\u0435<\/span> <\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u043c\u04d9\u043d\u0434\u0456 \u049b\u0430\u0439\u0442\u0430\u0440\u0443.getGlobalInfo();<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \/\/ <\/tt> <i> \u04d9\u0434\u0456\u0441\u0442\u0435\u0440\u0456<\/i><br \/>\n<tt> \u00a0 <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getValue();<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u041c\u044b\u0441\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u04e9\u0440\u0456\u0441\u0442\u0435\u0440\u0456\u043d\u0456\u04a3 \u0436\u0430\u043d\u0430\u043c\u0430 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043a\u0435\u043d\u0456\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u0435\u0434\u0456, \u0441\u043e\u043d\u0434\u044b\u049b\u0442\u0430\u043d \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u0436\u0430\u043b\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u04e9\u0440\u0456\u0441\u0456\u043d\u0456\u04a3 \u043c\u04d9\u043b\u0456\u043c\u0434\u0435\u043c\u0435\u0441\u0456\u043d\u0456\u04a3 \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u0436\u0435\u0440\u0456\u043d\u0434\u0435 \u049b\u043e\u043b\u0434\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u043c\u0430\u0439\u0434\u044b.\u00a0 \u0421\u043e\u043b \u0441\u0438\u044f\u049b\u0442\u044b \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f \u0435\u043c\u0435\u0441, \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f \u0431\u043e\u043b\u044b\u043f \u0441\u0430\u043d\u0430\u043b\u0430\u0434\u044b \u0436\u04d9\u043d\u0435 \u043e\u0441\u044b \u0441\u0435\u0431\u0435\u043f\u0442\u0456 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f\u0442\u044b\u04a3 \u043a\u0435\u0437 \u043a\u0435\u043b\u0433\u0435\u043d \u0436\u0435\u0440\u0456\u043d\u0434\u0435 \u0442\u04af\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u0437\u0430\u04a3\u0441\u044b\u0437 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b.<\/p>\n<p><b> <i> \u041a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u043c\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440 \u04af\u0448\u0456\u043d \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u0448\u0435\u0448\u0456\u043c:<\/i> <\/b><\/p>\n<p>\u0421\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u043c\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440 \u0436\u0430\u0493\u0434\u0430\u0439\u044b\u043d\u0434\u0430 \u0431\u04b1\u043b \u04af\u043b\u043a\u0435\u043d \u0430\u043f\u0430\u0442 \u0435\u043c\u0435\u0441.\u00a0 \u0428\u0435\u0448\u0456\u043c \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u0431\u0456\u0437 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043b\u0430\u0441\u0441\u0442\u044b \u043d\u0435\u043c\u0435\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0456 \u0436\u0430\u0441\u0430\u0439 \u0430\u043b\u0430\u043c\u044b\u0437.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u04e9\u0442\u043f\u0435 \u2013 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u04af\u0440\u0456\u043d \u0436\u0430\u0441\u0430\u0443):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u049b\u0430\u043f\u0442\u0430\u043c\u0430\u0441\u044b<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0444\u0438\u043d\u0430\u043b <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> theObject;<\/tt><\/p><\/blockquote>\n<blockquote><p><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u049b\u0430\u043f\u0442\u0430\u043c\u0430(<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> t) { theObject = t; }<\/tt><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getWrapper() { \u043d\u044b\u0441\u0430\u043d\u0434\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }<\/tt><tt> \u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d<b> &lt;T&gt;<\/b> makeImmutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0436\u0430\u04a3\u0430 \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u0443<b> &lt;T&gt;<\/b> (TheObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u04e9\u0437\u0433\u0435\u0440\u043c\u0435\u043b\u0456<b> &lt;T&gt;<\/b> makeMutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0436\u0430\u04a3\u0430 \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u043b\u0456 \u043c\u04d9\u043d\u0456\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u044b\u04a3\u044b\u0437<b> &lt;T&gt;<\/b> (TheObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b &lt;A&gt; A makeClone(A theObject) { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u049b\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b \u0441\u044b\u043d\u044b\u043f \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d<b> &lt;A&gt;<\/b> { <b> \/\/ \u049b\u0430\u0437\u0456\u0440 \u0436\u0430\u043b\u043f\u044b \u043a\u043b\u0430\u0441\u0441 \u0431\u043e\u043b\u044b\u043f \u0442\u0430\u0431\u044b\u043b\u0430\u0434\u044b<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u0436\u0435\u043a\u0435 \u0444\u0438\u043d\u0430\u043b <b> \u0410<\/b> theObject;<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d(<b> \u0410<\/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 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> \u0410<\/b> getWrappedItem() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 makeClone(theObject) \u049b\u0430\u0439\u0442\u0430\u0440\u0443;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043b\u0430\u0441\u0441 \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u043b\u0456<b> &lt;A&gt;<\/b> {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ... \u04b1\u049b\u0441\u0430\u0441 ...<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u041a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u0430\u043d\u0430\u0443 \u0442\u04af\u0440\u043b\u0435\u0440\u0456 \u04af\u0448\u0456\u043d \u043c\u04b1\u043d\u0434\u0430\u0439 \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u0448\u0435\u0448\u0456\u043c \u0436\u043e\u049b, \u0441\u0435\u0431\u0435\u0431\u0456 \u043e\u043b\u0430\u0440 \u0436\u0430\u043b\u043f\u044b \u0431\u043e\u043b\u0430 \u0430\u043b\u043c\u0430\u0439\u0434\u044b.<\/p>\n<p><b> <i> \u041a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u04af\u0448\u0456\u043d \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u0448\u0435\u0448\u0456\u043c:<\/i> <\/b><\/p>\n<p>\u0415\u0433\u0435\u0440 \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0442\u04af\u0440\u0456 \u0441\u044b\u043d\u044b\u043f \u0431\u043e\u043b\u0441\u0430, \u0431\u0430\u043b\u0430\u043c\u0430 \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u0448\u0435\u0448\u0456\u043c \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043b\u0430\u0441\u0441\u0442\u044b \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u0435\u043c\u0435\u0441 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u049b\u0430 \u0430\u0439\u043d\u0430\u043b\u0434\u044b\u0440\u0443 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u04e9\u0442\u043f\u0435 \u2013 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u044b\u04a3\u044b\u0437):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u049b\u0430\u043f\u0442\u0430\u043c\u0430\u0441\u044b<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0444\u0438\u043d\u0430\u043b <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> theObject;<\/tt><\/p><\/blockquote>\n<blockquote><p><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u049b\u0430\u043f\u0442\u0430\u043c\u0430(<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> t) { theObject = t; }<\/tt><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getWrapper() { \u043d\u044b\u0441\u0430\u043d\u0434\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }<\/tt><tt> \u00a0 public Mutable makeMutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 <b> \u0431\u04b1\u043b.<\/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 \u049b\u0430\u0439\u0442\u0430\u0440\u0443 <b> \u0431\u04b1\u043b.<\/b> new Immutable(theObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b &lt;A&gt; A makeClone(A theObject) { ... }<\/tt><\/p>\n<p><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u049b\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b \u0441\u044b\u043d\u044b\u043f \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d {\u00a0 <b> \/\/ \u0435\u043d\u0434\u0456 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b \u043a\u043b\u0430\u0441\u0441 \u0435\u043c\u0435\u0441<\/b> <\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u0436\u0435\u043a\u0435 \u0444\u0438\u043d\u0430\u043b <b> \u00d0\u00a2<\/b> theObject;<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d(<b> \u00d0\u00a2<\/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 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> \u00d0\u00a2<\/b> getWrappedItem() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 makeClone(theObject) \u049b\u0430\u0439\u0442\u0430\u0440\u0443;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u043a\u043b\u0430\u0441\u0441 \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u043b\u0456\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ... \u04b1\u049b\u0441\u0430\u0441 ...<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u0411\u04b1\u043b \u0443\u0430\u049b\u044b\u0442\u0448\u0430 \u0448\u0435\u0448\u0456\u043c \u049b\u043e\u0441\u044b\u043c\u0448\u0430 \u0448\u044b\u0493\u044b\u043d\u0434\u0430\u0440\u0434\u044b\u04a3 \u0431\u0435\u043b\u0433\u0456\u043b\u0456 \u0431\u0456\u0440 \u043c\u04e9\u043b\u0448\u0435\u0440\u0456\u043c\u0435\u043d \u0431\u0456\u0440\u0433\u0435 \u043a\u0435\u043b\u0435\u0434\u0456, \u0441\u0435\u0431\u0435\u0431\u0456 \u0431\u0430\u0440\u043b\u044b\u049b \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440\u0434\u0430 \u0441\u044b\u0440\u0442\u049b\u044b \u0442\u04af\u0440 \u0434\u0430\u043d\u0430\u0441\u044b\u043d\u0430 \u0436\u0430\u0441\u044b\u0440\u044b\u043d \u0441\u0456\u043b\u0442\u0435\u043c\u0435 \u0431\u0430\u0440, \u0431\u04b1\u043b \u043c\u044b\u0441\u0430\u043b\u0434\u0430 \u043e\u043b\u0430\u0440 \u049b\u0430\u0436\u0435\u0442 \u0435\u043c\u0435\u0441 \u0436\u04d9\u043d\u0435 \u0430\u0440\u0442\u044b\u049b\u0448\u044b\u043b\u044b\u0493\u044b \u0436\u043e\u049b; \u0436\u0430\u0441\u044b\u0440\u044b\u043d \u0430\u043d\u044b\u049b\u0442\u0430\u043c\u0430 &#8211; \u0442\u0435\u043a \u0431\u0430\u0433\u0430\u0436.\u00a0 \u041a\u04e9\u0431\u0456\u043d\u0435\u0441\u0435 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u0456\u0448\u043a\u0456 \u0441\u044b\u043d\u044b\u043f\u0442\u044b \u049b\u043e\u0440\u0448\u0430\u0443 \u043a\u043b\u0430\u0441\u044b\u043d\u044b\u04a3 \u0436\u0435\u043a\u0435 \u0456\u0441\u043a\u0435 \u0430\u0441\u044b\u0440\u0443 \u043c\u04d9\u043b\u0456\u043c\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u0441\u0430\u049b\u0442\u0430\u0443 \u04af\u0448\u0456\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440\u043c\u0435\u043d \u0431\u0456\u0440\u0456\u043a\u0442\u0456\u0440\u0456\u043b\u0435\u0434\u0456.\u00a0 \u0411\u0456\u0437 \u0434\u0435 \u0434\u04d9\u043b \u043e\u0441\u044b\u043b\u0430\u0439 \u0436\u0430\u0441\u0430\u0439 \u0430\u043b\u0430\u043c\u044b\u0437.<\/p>\n<p>\u041c\u044b\u0441\u0430\u043b (\u0430\u043b\u0434\u044b\u04a3\u0493\u044b \u0448\u0435\u0448\u0456\u043c \u043d\u0430\u049b\u0442\u044b\u043b\u0430\u043d\u0493\u0430\u043d):<\/p>\n<blockquote><p><tt> \u0441\u044b\u043d\u044b\u043f \u049b\u0430\u043f\u0442\u0430\u043c\u0430\u0441\u044b<b> <span style=\"color:#000099;\"> &lt;T&gt;<\/span> <\/b> {<\/tt><br \/>\n<tt> \u00a0 \u0436\u0435\u043a\u0435 \u0444\u0438\u043d\u0430\u043b <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> theObject;<\/tt><\/p><\/blockquote>\n<blockquote><p><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u049b\u0430\u043f\u0442\u0430\u043c\u0430(<b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> t) { theObject = t; }<\/tt><br \/>\n<tt> \u00a0 \u00d2\u203a\u00d0\u00be\u00d2\u201c\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d1\u2039\u00d2\u203a <b> <span style=\"color:#000099;\"> \u00d0\u00a2<\/span> <\/b> getWrapper() { \u043d\u044b\u0441\u0430\u043d\u0434\u044b \u049b\u0430\u0439\u0442\u0430\u0440\u0443; }<\/tt><tt> \u00a0 \u0436\u0430\u043b\u043f\u044b \u04e9\u0437\u0433\u0435\u0440\u043c\u0435\u043b\u0456<b> &lt;T&gt;<\/b> makeMutable() {<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 return this.new Mutable(theObject);<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 \u049b\u043e\u0493\u0430\u043c\u0434\u044b\u049b \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d<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 \u0436\u0435\u043a\u0435 \u0441\u0442\u0430\u0442\u0438\u043a\u0430\u043b\u044b\u049b &lt;A&gt; A makeClone(A theObject) { ... }<\/tt><\/p>\n<p><tt> \u00a0 <b> \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <\/b> \u04e8\u0437\u0433\u0435\u0440\u043c\u0435\u0439\u0442\u0456\u043d&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> \u0436\u0430\u043b\u043f\u044b\u0493\u0430 \u043e\u0440\u0442\u0430\u049b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <\/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> \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5<\/b> \u0441\u043e\u04a3\u0493\u044b \u0441\u044b\u043d\u044b\u043f ImmutableImplementation <b> Immutable&lt;T&gt; \u0456\u0441\u043a\u0435 \u0430\u0441\u044b\u0440\u0430\u0434\u044b<\/b> {\u00a0<\/tt><\/p>\n<p><tt> \u00a0\u00a0\u00a0\u00a0\u00a0 \u0436\u0435\u043a\u0435 \u049b\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b 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 makeClone(theObject) \u049b\u0430\u0439\u0442\u0430\u0440\u0443;<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0 }<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> \u00a0 <b> \u00d0\u00b6\u00d0\u00b5\u00d0\u00ba\u00d0\u00b5<\/b> \u0441\u044b\u043d\u044b\u043f MutableImplementation <b> Mutable&lt;T&gt; \u0436\u04af\u0437\u0435\u0433\u0435 \u0430\u0441\u044b\u0440\u0430\u0434\u044b<\/b> {\u00a0<\/tt><br \/>\n<tt> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ... \u04b1\u049b\u0441\u0430\u0441 ...<\/tt><br \/>\n<tt> \u00a0 }<\/tt><br \/>\n<tt> }<\/tt><\/p><\/blockquote>\n<p>\u041a\u04e9\u0440\u0456\u043f \u043e\u0442\u044b\u0440\u0493\u0430\u043d\u044b\u04a3\u044b\u0437\u0434\u0430\u0439, \u043a\u0456\u0440\u0456\u0441\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u0436\u0430\u043b\u043f\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0442\u0435\u0440 \u0436\u0430\u043b\u043f\u044b \u0431\u043e\u043b\u0443\u044b \u043a\u0435\u0440\u0435\u043a, \u0430\u043b \u0456\u0448\u043a\u0456 \u0436\u0435\u043a\u0435 \u0441\u044b\u043d\u044b\u043f\u0442\u0430\u0440 \u049b\u043e\u0440\u0448\u0430\u0443 \u043a\u043b\u0430\u0441\u044b\u043d\u044b\u04a3 \u0442\u0438\u043f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430 \u0430\u043b\u0430\u0434\u044b.<\/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>\u049a\u043e\u0441\u044b\u043c\u0448\u0430 \u0430\u049b\u043f\u0430\u0440\u0430\u0442 \u0430\u043b\u0443 \u04af\u0448\u0456\u043d \u043c\u044b\u043d\u0430 \u0436\u0438\u0456 \u049b\u043e\u0439\u044b\u043b\u0430\u0442\u044b\u043d \u0441\u04b1\u0440\u0430\u049b\u0442\u0430\u0440\u0434\u044b \u049b\u0430\u0440\u0430\u04a3\u044b\u0437: <a href=\"http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1\" rel=\"nofollow\">http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1<\/a> \u041c\u0456\u043d\u0435, \u043e\u0441\u044b \u0436\u0438\u0456 \u049b\u043e\u0439\u044b\u043b\u0430\u0442\u044b\u043d \u0441\u04b1\u0440\u0430\u049b\u0442\u0430\u0440\u0434\u044b\u04a3 \u043a\u0435\u0439\u0431\u0456\u0440 \u043c\u0430\u04a3\u044b\u0437\u0434\u044b \u0442\u04b1\u0441\u0442\u0430\u0440\u044b \u049b\u044b\u0441\u049b\u0430\u0448\u0430. \u041c\u0435\u043d \u043e\u0439\u043b\u0430\u0434\u044b\u043c (\u0436\u0430\u043b\u043f\u044b \u0442\u0438\u043f\u0442\u0435\u0433\u0456 \u0442\u0435\u0433\u0442\u0435\u0440): \u043a\u043b\u0438\u0441\u0431 \u0436\u0443\u0431\u044b&lt;X,Y&gt; {\u00a0 \u00a0 \u0434\u0435\u043a\u043e\u043d\u0435\u0439 X \u043f\u0435\u0440\u0435\u0445\u043e\u0434; \u00a0 \u0436\u0435\u043a\u0435 Y \u0441\u0435\u043a\u0443\u043d\u0434; \u00a0 \u0436\u0430\u043b\u043f\u044b yf(X a1, Y a2) { \u00a0\u00a0\u00a0 \u0431\u0456\u0440\u0456\u043d\u0448\u0456 = a1; \u00a0\u00a0\u00a0 \u0441\u0435\u043a\u0443\u043d\u0434 = a2; \u00a0 } \u00a0 public X getFirst() [&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_seo_llms_txt_always_include":false,"_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-java--2"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-v","jetpack-related-posts":[{"id":55,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/important-shell-script-commands-which-are-oft-used\/","url_meta":{"origin":31,"position":0},"title":"\u00d0\u2013\u00d0\u00b8\u00d1\u2013 \u00d2\u203a\u00d0\u00be\u00d0\u00bb\u00d0\u00b4\u00d0\u00b0\u00d0\u00bd\u00d1\u2039\u00d0\u00bb\u00d0\u00b0\u00d1\u201a\u00d1\u2039\u00d0\u00bd \u00d0\u00bc\u00d0\u00b0\u00d2\u00a3\u00d1\u2039\u00d0\u00b7\u00d0\u00b4\u00d1\u2039 Shell \u00d1\u0081\u00d1\u2020\u00d0\u00b5\u00d0\u00bd\u00d0\u00b0\u00d1\u20ac\u00d0\u00b8\u00d0\u00b9 \u00d0\u00ba\u00d0\u00be\u00d0\u00bc\u00d0\u00b0\u00d0\u00bd\u00d0\u00b4\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac\u00d1\u2039","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"Here is a list of some important shell commands: ---- Using Screen command screen -ls -- for a list of avaliable active screens screen -x .... - the Name from -ls output to join to this active screen Go out of the Screen with 'ctrl a+d' without stopping it ----\u2026","rel":"","context":"In &quot;\u00d0\u009d\u00d0\u00b5\u00d0\u00b3\u00d1\u2013\u00d0\u00b7\u00d0\u00b3\u00d1\u2013 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac\u00d2\u201c\u00d0\u00b0 \u00d0\u00ba\u00d1\u2013\u00d1\u20ac\u00d0\u00bc\u00d0\u00b5\u00d0\u00b9\u00d1\u201a\u00d1\u2013\u00d0\u00bd \u00d0\u00b1\u00d0\u00b0\u00d1\u20ac\u00d0\u00bb\u00d1\u2039\u00d2\u203a \u00d0\u00b1\u00d0\u00b0\u00d1\u0081\u00d2\u203a\u00d0\u00b0 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac \u00d0\u00b1\u00d0\u00be\u00d0\u00b9\u00d1\u2039\u00d0\u00bd\u00d1\u02c6\u00d0\u00b0 \u00d0\u00bc\u00d0\u00b0\u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac&quot;","block_context":{"text":"\u00d0\u009d\u00d0\u00b5\u00d0\u00b3\u00d1\u2013\u00d0\u00b7\u00d0\u00b3\u00d1\u2013 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac\u00d2\u201c\u00d0\u00b0 \u00d0\u00ba\u00d1\u2013\u00d1\u20ac\u00d0\u00bc\u00d0\u00b5\u00d0\u00b9\u00d1\u201a\u00d1\u2013\u00d0\u00bd \u00d0\u00b1\u00d0\u00b0\u00d1\u20ac\u00d0\u00bb\u00d1\u2039\u00d2\u203a \u00d0\u00b1\u00d0\u00b0\u00d1\u0081\u00d2\u203a\u00d0\u00b0 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac \u00d0\u00b1\u00d0\u00be\u00d0\u00b9\u00d1\u2039\u00d0\u00bd\u00d1\u02c6\u00d0\u00b0 \u00d0\u00bc\u00d0\u00b0\u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac","link":"https:\/\/vkrastev1blog.com\/category\/%d0%bd%d0%b5%d0%b3%d1%96%d0%b7%d0%b3%d1%96\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":247,"url":"https:\/\/vkrastev1blog.com\/2024\/04\/11\/how-to-create-pdf-from-html-or-image-using-java-pdfbox-framework\/","url_meta":{"origin":31,"position":1},"title":"Java pdfbox \u00d0\u00bd\u00d0\u00b5\u00d0\u00b3\u00d1\u2013\u00d0\u00b7\u00d1\u2013\u00d0\u00bd \u00d0\u00bf\u00d0\u00b0\u00d0\u00b9\u00d0\u00b4\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bd\u00d1\u2039\u00d0\u00bf HTML \u00d0\u00bd\u00d0\u00b5\u00d0\u00bc\u00d0\u00b5\u00d1\u0081\u00d0\u00b5 \u00d0\u00ba\u00d0\u00b5\u00d1\u0081\u00d0\u00ba\u00d1\u2013\u00d0\u00bd\u00d0\u00bd\u00d0\u00b5\u00d0\u00bd PDF \u00d1\u201e\u00d0\u00b0\u00d0\u00b9\u00d0\u00bb\u00d1\u2039\u00d0\u00bd \u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00b9 \u00d0\u00b6\u00d0\u00b0\u00d1\u0081\u00d0\u00b0\u00d1\u0192\u00d2\u201c\u00d0\u00b0 \u00d0\u00b1\u00d0\u00be\u00d0\u00bb\u00d0\u00b0\u00d0\u00b4\u00d1\u2039","author":"vkrastev2014","date":"11.04.2024","format":false,"excerpt":"How to create PDF from HTML or image using java pdfbox framework Following example code here: In pom.xml insert or get the jar files and add them to the java project if you don't use maven: <repositories> <repository> <id>jitpack.io<\/id> <url>https:\/\/jitpack.io<\/url> <\/repository> <\/repositories> <!-- https:\/\/mvnrepository.com\/artifact\/org. apache.pdfbox\/pdfbox --> <dependency> <groupId>org.apache.pdfbox<\/groupId> <artifactId>pdfbox<\/artifactId> <version>3.0.2<\/version>\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":47,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/how-to-sign-jars-signing-jars-for-use-in-applets\/","url_meta":{"origin":31,"position":2},"title":"\u00d0\u2018\u00d0\u00b0\u00d0\u00bd\u00d0\u00ba\u00d1\u201a\u00d0\u00b5\u00d1\u20ac\u00d0\u00b3\u00d0\u00b5 \u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00b9 \u00d2\u203a\u00d0\u00be\u00d0\u00bb \u00d2\u203a\u00d0\u00be\u00d1\u017d\u00d2\u201c\u00d0\u00b0 \u00d0\u00b1\u00d0\u00be\u00d0\u00bb\u00d0\u00b0\u00d0\u00b4\u00d1\u2039. \u00d0\u0090\u00d0\u00bf\u00d0\u00bf\u00d0\u00bb\u00d0\u00b5\u00d1\u201a\u00d1\u201a\u00d0\u00b5\u00d1\u20ac\u00d0\u00b4\u00d0\u00b5 \u00d0\u00bf\u00d0\u00b0\u00d0\u00b9\u00d0\u00b4\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bd\u00d1\u0192 \u00d2\u00af\u00d1\u02c6\u00d1\u2013\u00d0\u00bd \u00d0\u00b1\u00d0\u00b0\u00d0\u00bd\u00d0\u00ba\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac\u00d2\u201c\u00d0\u00b0 \u00d2\u203a\u00d0\u00be\u00d0\u00bb \u00d2\u203a\u00d0\u00be\u00d1\u017d.","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"As the Browsers now want the Jars to be signed it happens oft that man have to sign a Jar himself. Here is a Manual how to sign a Jar. First you have to install Java SDK. http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp Install the JDK from the list for the envitonment you use. This\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2728,"url":"https:\/\/vkrastev1blog.com\/2026\/10\/14\/dark-energy-and-matter-in-the-universe-or-a-manifestation-of-the-power-of-the-lord-god\/","url_meta":{"origin":31,"position":3},"title":"\u00d2\u2019\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bc\u00d0\u00b4\u00d0\u00b0\u00d2\u201c\u00d1\u2039 \u00d2\u203a\u00d0\u00b0\u00d1\u20ac\u00d0\u00b0\u00d2\u00a3\u00d2\u201c\u00d1\u2039 \u00d1\u008d\u00d0\u00bd\u00d0\u00b5\u00d1\u20ac\u00d0\u00b3\u00d0\u00b8\u00d1\u008f \u00d0\u00bc\u00d0\u00b5\u00d0\u00bd \u00d0\u00bc\u00d0\u00b0\u00d1\u201a\u00d0\u00b5\u00d1\u20ac\u00d0\u00b8\u00d1\u008f \u00d0\u00bd\u00d0\u00b5\u00d0\u00bc\u00d0\u00b5\u00d1\u0081\u00d0\u00b5 \u00d2\u0161\u00d2\u00b1\u00d0\u00b4\u00d0\u00b0\u00d0\u00b9 \u00d0\u02dc\u00d0\u00b5\u00d0\u00bd\u00d1\u2013\u00d2\u00a3 \u00d2\u203a\u00d2\u00b1\u00d0\u00b4\u00d1\u2013\u00d1\u20ac\u00d0\u00b5\u00d1\u201a\u00d1\u2013\u00d0\u00bd\u00d1\u2013\u00d2\u00a3 \u00d0\u00ba\u00d3\u00a9\u00d1\u20ac\u00d1\u2013\u00d0\u00bd\u00d1\u2013\u00d1\u0081\u00d1\u2013","author":"vkrastev2014","date":"14.10.2026","format":false,"excerpt":"Dark Energy and Matter in the Universe or a Manifestation of the Power of the Lord God? A Scientific and Philosophical Article from a Christian Perspective * Abstract Modern cosmology confronts humanity with one of the most profound questions about the nature of the Universe: What is dark energy and\u2026","rel":"","context":"In &quot;\u00d0\u0161\u00d0\u00b8\u00d0\u00b5\u00d0\u00bb\u00d1\u2013 \u00d0\u00ba\u00d1\u2013\u00d1\u201a\u00d0\u00b0\u00d0\u00bf\u00d2\u203a\u00d0\u00b0 \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 \u00d1\u20ac\u00d1\u0192\u00d1\u2026 \u00d0\u00bf\u00d0\u00b5\u00d0\u00bd \u00d0\u00b4\u00d0\u00b5\u00d0\u00bd\u00d0\u00b5\u00d0\u00b3\u00d0\u00b5 \u00d0\u00b0\u00d1\u20ac\u00d0\u00bd\u00d0\u00b0\u00d0\u00bb\u00d2\u201c\u00d0\u00b0\u00d0\u00bd \u00d0\u00bc\u00d0\u00b0\u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac&quot;","block_context":{"text":"\u00d0\u0161\u00d0\u00b8\u00d0\u00b5\u00d0\u00bb\u00d1\u2013 \u00d0\u00ba\u00d1\u2013\u00d1\u201a\u00d0\u00b0\u00d0\u00bf\u00d2\u203a\u00d0\u00b0 \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 \u00d1\u20ac\u00d1\u0192\u00d1\u2026 \u00d0\u00bf\u00d0\u00b5\u00d0\u00bd \u00d0\u00b4\u00d0\u00b5\u00d0\u00bd\u00d0\u00b5\u00d0\u00b3\u00d0\u00b5 \u00d0\u00b0\u00d1\u20ac\u00d0\u00bd\u00d0\u00b0\u00d0\u00bb\u00d2\u201c\u00d0\u00b0\u00d0\u00bd \u00d0\u00bc\u00d0\u00b0\u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac","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\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":19,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/09\/how-to-install-the-newest-nvidia-driver-on-ubuntu\/","url_meta":{"origin":31,"position":4},"title":"Ubuntu \u00d0\u00b6\u00d2\u00af\u00d0\u00b9\u00d0\u00b5\u00d1\u0081\u00d1\u2013\u00d0\u00bd\u00d0\u00b4\u00d0\u00b5 \u00d0\u00b5\u00d2\u00a3 \u00d1\u0081\u00d0\u00be\u00d2\u00a3\u00d2\u201c\u00d1\u2039 NVIDIA \u00d0\u00b4\u00d1\u20ac\u00d0\u00b0\u00d0\u00b9\u00d0\u00b2\u00d0\u00b5\u00d1\u20ac\u00d1\u2013\u00d0\u00bd \u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00b9 \u00d0\u00be\u00d1\u20ac\u00d0\u00bd\u00d0\u00b0\u00d1\u201a\u00d1\u0192\u00d2\u201c\u00d0\u00b0 \u00d0\u00b1\u00d0\u00be\u00d0\u00bb\u00d0\u00b0\u00d0\u00b4\u00d1\u2039","author":"vkrastev2014","date":"09.05.2014","format":false,"excerpt":"Open console window and type following commands: -------------------------------------------------------------------------------------------------------------- sudo apt-add-repository ppa:ubuntu-x-swat sudo apt-get update sudo apt-get install nvidia-current --------------------------------------------------------------------------------------------------------------- And you have the newest Driver installed.","rel":"","context":"In &quot;\u00d0\u009d\u00d0\u00b5\u00d0\u00b3\u00d1\u2013\u00d0\u00b7\u00d0\u00b3\u00d1\u2013 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac\u00d2\u201c\u00d0\u00b0 \u00d0\u00ba\u00d1\u2013\u00d1\u20ac\u00d0\u00bc\u00d0\u00b5\u00d0\u00b9\u00d1\u201a\u00d1\u2013\u00d0\u00bd \u00d0\u00b1\u00d0\u00b0\u00d1\u20ac\u00d0\u00bb\u00d1\u2039\u00d2\u203a \u00d0\u00b1\u00d0\u00b0\u00d1\u0081\u00d2\u203a\u00d0\u00b0 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac \u00d0\u00b1\u00d0\u00be\u00d0\u00b9\u00d1\u2039\u00d0\u00bd\u00d1\u02c6\u00d0\u00b0 \u00d0\u00bc\u00d0\u00b0\u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac&quot;","block_context":{"text":"\u00d0\u009d\u00d0\u00b5\u00d0\u00b3\u00d1\u2013\u00d0\u00b7\u00d0\u00b3\u00d1\u2013 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac\u00d2\u201c\u00d0\u00b0 \u00d0\u00ba\u00d1\u2013\u00d1\u20ac\u00d0\u00bc\u00d0\u00b5\u00d0\u00b9\u00d1\u201a\u00d1\u2013\u00d0\u00bd \u00d0\u00b1\u00d0\u00b0\u00d1\u20ac\u00d0\u00bb\u00d1\u2039\u00d2\u203a \u00d0\u00b1\u00d0\u00b0\u00d1\u0081\u00d2\u203a\u00d0\u00b0 \u00d1\u201a\u00d0\u00b0\u00d2\u203a\u00d1\u2039\u00d1\u20ac\u00d1\u2039\u00d0\u00bf\u00d1\u201a\u00d0\u00b0\u00d1\u20ac \u00d0\u00b1\u00d0\u00be\u00d0\u00b9\u00d1\u2039\u00d0\u00bd\u00d1\u02c6\u00d0\u00b0 \u00d0\u00bc\u00d0\u00b0\u00d2\u203a\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac","link":"https:\/\/vkrastev1blog.com\/category\/%d0%bd%d0%b5%d0%b3%d1%96%d0%b7%d0%b3%d1%96\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":107,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/20\/important-git-commands\/","url_meta":{"origin":31,"position":5},"title":"\u00d0\u0153\u00d0\u00b0\u00d2\u00a3\u00d1\u2039\u00d0\u00b7\u00d0\u00b4\u00d1\u2039 Git \u00d0\u00ba\u00d0\u00be\u00d0\u00bc\u00d0\u00b0\u00d0\u00bd\u00d0\u00b4\u00d0\u00b0\u00d0\u00bb\u00d0\u00b0\u00d1\u20ac\u00d1\u2039 \u00d0\u00b6\u00d3\u2122\u00d0\u00bd\u00d0\u00b5 \u00d0\u00be\u00d2\u203a\u00d1\u0192\u00d0\u00bb\u00d1\u2039\u00d2\u203a\u00d1\u201a\u00d0\u00b0\u00d1\u20ac","author":"vkrastev2014","date":"20.05.2014","format":false,"excerpt":"How to get help for a Git commands git help [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND] Example: git help git It launches a browser and shows a help in HTML. Setting up local repository and making initial push: cd my_project git init git add * git commit -m \"My initial commit message\" git remote\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"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}]}}