代码搜索:Generics
找到约 1,477 项符合「Generics」的源代码
代码结果 1,477
www.eeworm.com/read/344239/11897156
java generators.java
//: generics/Generators.java
// A utility to use with Generators.
import generics.coffee.*;
import java.util.*;
import net.mindview.util.*;
public class Generators {
public static Collec
www.eeworm.com/read/344239/11897159
java supertypewildcards.java
//: generics/SuperTypeWildcards.java
import java.util.*;
public class SuperTypeWildcards {
static void writeTo(List
www.eeworm.com/read/344239/11897163
java selfboundingmethods.java
//: generics/SelfBoundingMethods.java
public class SelfBoundingMethods {
static T f(T arg) {
return arg.set(arg).get();
}
public static void main(String[] a
www.eeworm.com/read/373369/9461198
java uselist.java
//: generics/UseList.java
// {CompileTimeError} (Won't compile)
import java.util.*;
public class UseList {
void f(List v) {}
void f(List v) {}
} ///:~
www.eeworm.com/read/373369/9461270
java holder1.java
//: generics/Holder1.java
class Automobile {}
public class Holder1 {
private Automobile a;
public Holder1(Automobile a) { this.a = a; }
Automobile get() { return a; }
} ///:~
www.eeworm.com/read/169058/9883931
java uselist.java
//: generics/UseList.java
// {CompileTimeError} (Won't compile)
import java.util.*;
public class UseList {
void f(List v) {}
void f(List v) {}
} ///:~
www.eeworm.com/read/169058/9884006
java holder1.java
//: generics/Holder1.java
class Automobile {}
public class Holder1 {
private Automobile a;
public Holder1(Automobile a) { this.a = a; }
Automobile get() { return a; }
} ///:~
www.eeworm.com/read/332978/7142255
java uselist.java
//: generics/UseList.java
// {CompileTimeError} (Won't compile)
import java.util.*;
public class UseList {
void f(List v) {}
void f(List v) {}
} ///:~
www.eeworm.com/read/332978/7142288
java holder1.java
//: generics/Holder1.java
class Automobile {}
public class Holder1 {
private Automobile a;
public Holder1(Automobile a) { this.a = a; }
Automobile get() { return a; }
} ///:~
www.eeworm.com/read/325023/13232348
java uselist.java
//: generics/UseList.java
// {CompileTimeError} (Won't compile)
import java.util.*;
public class UseList {
void f(List v) {}
void f(List v) {}
} ///:~