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

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Generics/Generic_Interface&amp;diff=9175&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Generics/Generic_Interface&amp;diff=9175&amp;oldid=prev"/>
				<updated>2010-06-01T07:27:19Z</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;Версия 07:27, 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://jexp.ru/index.php?title=Java/Generics/Generic_Interface&amp;diff=9174&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Generics/Generic_Interface&amp;diff=9174&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:50Z</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;== A generic interface example.  ==&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;
 &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;
 &lt;br /&gt;
  MyClass(T[] o) { 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) v = vals[i]; &lt;br /&gt;
 &lt;br /&gt;
    return v; &lt;br /&gt;
  } &lt;br /&gt;
 &lt;br /&gt;
  public T max() { &lt;br /&gt;
    T v = vals[0]; &lt;br /&gt;
 &lt;br /&gt;
    for(int i=1; i &amp;lt; vals.length; i++) &lt;br /&gt;
      if(vals[i].rupareTo(v) &amp;gt; 0) v = vals[i]; &lt;br /&gt;
 &lt;br /&gt;
    return v; &lt;br /&gt;
  } &lt;br /&gt;
} &lt;br /&gt;
 &lt;br /&gt;
public class GenIFDemo { &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;b&amp;quot;, &amp;quot;r&amp;quot;, &amp;quot;p&amp;quot;, &amp;quot;w&amp;quot; }; &lt;br /&gt;
 &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;
 &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;
 &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;
}&lt;br /&gt;
&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;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Interface Generic (Has compile error) ==&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;
&lt;br /&gt;
import java.util.*;&lt;br /&gt;
interface BaseInterface&amp;lt;A&amp;gt; {&lt;br /&gt;
    A getInfo();&lt;br /&gt;
}&lt;br /&gt;
class ParentClass implements BaseInterface&amp;lt;Integer&amp;gt; {&lt;br /&gt;
    public Integer getInfo()&lt;br /&gt;
    {&lt;br /&gt;
        return(null);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
class ChildClass extends ParentClass implements BaseInterface&amp;lt;String&amp;gt; { }&lt;br /&gt;
public class BadParents {&lt;br /&gt;
    public static void main(String args[])&lt;br /&gt;
    {&lt;br /&gt;
        Vector&amp;lt;Integer&amp;gt; v1 = new Vector&amp;lt;Integer&amp;gt;();&lt;br /&gt;
        Vector v2;&lt;br /&gt;
        v1 = v2;&lt;br /&gt;
        v2 = v1;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&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;/div&gt;</summary>
			</entry>

	</feed>