<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FGenerics%2FGeneric_Interfaces</id>
		<title>Java Tutorial/Generics/Generic Interfaces - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FGenerics%2FGeneric_Interfaces"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/Generics/Generic_Interfaces&amp;action=history"/>
		<updated>2026-04-19T07:07:16Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/Generics/Generic_Interfaces&amp;diff=5440&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/Generics/Generic_Interfaces&amp;diff=5440&amp;oldid=prev"/>
				<updated>2010-06-01T05:20:50Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 05:20, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/Generics/Generic_Interfaces&amp;diff=5439&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/Generics/Generic_Interfaces&amp;diff=5439&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Generic Interfaces ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
interface MinMax&amp;lt;T extends Comparable&amp;lt;T&amp;gt;&amp;gt; {&lt;br /&gt;
  T min();&lt;br /&gt;
  T max();&lt;br /&gt;
}&lt;br /&gt;
class MyClass&amp;lt;T extends Comparable&amp;lt;T&amp;gt;&amp;gt; implements MinMax&amp;lt;T&amp;gt; {&lt;br /&gt;
  T[] vals;&lt;br /&gt;
  MyClass(T[] o) {&lt;br /&gt;
    vals = o;&lt;br /&gt;
  }&lt;br /&gt;
  public T min() {&lt;br /&gt;
    T v = vals[0];&lt;br /&gt;
    for (int i = 1; i &amp;lt; vals.length; i++)&lt;br /&gt;
      if (vals[i].rupareTo(v) &amp;lt; 0)&lt;br /&gt;
        v = vals[i];&lt;br /&gt;
    return v;&lt;br /&gt;
  }&lt;br /&gt;
  public T max() {&lt;br /&gt;
    T v = vals[0];&lt;br /&gt;
    for (int i = 1; i &amp;lt; vals.length; i++)&lt;br /&gt;
      if (vals[i].rupareTo(v) &amp;gt; 0)&lt;br /&gt;
        v = vals[i];&lt;br /&gt;
    return v;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String args[]) {&lt;br /&gt;
    Integer inums[] = { 3, 6, 2, 8, 6 };&lt;br /&gt;
    Character chs[] = { &amp;quot;A&amp;quot;, &amp;quot;r&amp;quot;, &amp;quot;V&amp;quot;, &amp;quot;w&amp;quot; };&lt;br /&gt;
    MyClass&amp;lt;Integer&amp;gt; iob = new MyClass&amp;lt;Integer&amp;gt;(inums);&lt;br /&gt;
    MyClass&amp;lt;Character&amp;gt; cob = new MyClass&amp;lt;Character&amp;gt;(chs);&lt;br /&gt;
    System.out.println(&amp;quot;Max value in inums: &amp;quot; + iob.max());&lt;br /&gt;
    System.out.println(&amp;quot;Min value in inums: &amp;quot; + iob.min());&lt;br /&gt;
    System.out.println(&amp;quot;Max value in chs: &amp;quot; + cob.max());&lt;br /&gt;
    System.out.println(&amp;quot;Min value in chs: &amp;quot; + cob.min());&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Max value in inums: 8&lt;br /&gt;
Min value in inums: 2&lt;br /&gt;
Max value in chs: w&lt;br /&gt;
Min value in chs: A&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  The generalized syntax for a generic interface ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;OL&amp;gt;&amp;lt;LI&amp;gt;type-param-list is a comma-separated list of type parameters.&amp;lt;/LI&amp;gt;&amp;lt;LI&amp;gt;When a generic interface is implemented, you must specify the type arguments&amp;lt;/LI&amp;gt;&amp;lt;/OL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
interface interface-name&amp;lt;type-param-list&amp;gt; { // ...&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>