代码搜索:Generics
找到约 1,477 项符合「Generics」的源代码
代码结果 1,477
www.eeworm.com/read/163079/10175543
c sg.c
/*
History:
Started: Aug 9 by Lawrence Foard (entropy@world.std.com), to allow user
process control of SCSI devices.
Development Sponsored by Killy Corp. NY NY
Borrows
www.eeworm.com/read/353439/10446537
java genericmethods10.java
// generics/GenericMethods10.java
// TIJ4 Chapter Generics, Exercise 10, page 633
// Modify the previous exercise so that one of f()'s arguments
// is non-parameterized.
public class GenericMeth
www.eeworm.com/read/352754/10515699
c sg.c
/*
History:
Started: Aug 9 by Lawrence Foard (entropy@world.std.com), to allow user
process control of SCSI devices.
Development Sponsored by Killy Corp. NY NY
Borrows
www.eeworm.com/read/332978/7142226
java manipulator2.java
//: generics/Manipulator2.java
class Manipulator2 {
private T obj;
public Manipulator2(T x) { obj = x; }
public void manipulate() { obj.f(); }
} ///:~
www.eeworm.com/read/332978/7142242
java manipulator3.java
//: generics/Manipulator3.java
class Manipulator3 {
private HasF obj;
public Manipulator3(HasF x) { obj = x; }
public void manipulate() { obj.f(); }
} ///:~
www.eeworm.com/read/332978/7142249
java crgwithbasicholder.java
//: generics/CRGWithBasicHolder.java
class Subtype extends BasicHolder {}
public class CRGWithBasicHolder {
public static void main(String[] args) {
Subtype st1 = new Subtype(),
www.eeworm.com/read/332978/7142265
java unconstrained.java
//: generics/Unconstrained.java
class Other {}
class BasicOther extends BasicHolder {}
public class Unconstrained {
public static void main(String[] args) {
BasicOther b = new Ba
www.eeworm.com/read/332978/7142272
java uselist2.java
//: generics/UseList2.java
import java.util.*;
public class UseList2 {
void f1(List v) {}
void f2(List v) {}
} ///:~
www.eeworm.com/read/454660/7385890
java genericmethods10.java
// generics/GenericMethods10.java
// TIJ4 Chapter Generics, Exercise 10, page 633
// Modify the previous exercise so that one of f()'s arguments
// is non-parameterized.
public class GenericMeth
www.eeworm.com/read/434781/7801855
java genericmethods10.java
// generics/GenericMethods10.java
// TIJ4 Chapter Generics, Exercise 10, page 633
// Modify the previous exercise so that one of f()'s arguments
// is non-parameterized.
public class GenericMeth