代码搜索:Generics
找到约 1,477 项符合「Generics」的源代码
代码结果 1,477
www.eeworm.com/read/454660/7385858
java functional42.java
// generics/Functional42.java
// TIJ4 Chapter Generics, Exercise 42, page 743
/*
* Create two separate classes, with nothing in common. Each class should
* hold a value, and at least have methods
www.eeworm.com/read/454660/7385865
java sixtupletest.java
// generics/SixTupleTest.java
// TIJ4 Chapter Generics, Exercise 3, page 624
// Create and test a SixTuple generic.
import net.mindview.util.*;
class Robot {}
class Amphibian {}
class Vehicle
www.eeworm.com/read/454660/7385872
java classtypecapture24.java
// generics/ClassTypeCapture24.java
// TIJ4 Chapter Generics, Exercise 24, page 667
// Modify Exercise 21 so that factory objects are held in the Map instead of Class.
import java.util.*;
impor
www.eeworm.com/read/454660/7385877
java fibonacci7.java
// generics/Fibonacci7.java
// TIJ4 Chapter Generics, Exercise 7, page 631
// Use composition instead of inheritance to adapt Fibonacci
// to make it interable.
import net.mindview.util.*;
import
www.eeworm.com/read/454660/7385891
java factoryconstraint23.java
// generics/FactoryConstraint23.java
// TIJ4 Chapter Generics, Exercise 23, page 667
// Modify FactoryConstraint.java so that create() takes an argument.
interface FactoryI {
T create(Intege
www.eeworm.com/read/434781/7801823
java functional42.java
// generics/Functional42.java
// TIJ4 Chapter Generics, Exercise 42, page 743
/*
* Create two separate classes, with nothing in common. Each class should
* hold a value, and at least have methods
www.eeworm.com/read/434781/7801830
java sixtupletest.java
// generics/SixTupleTest.java
// TIJ4 Chapter Generics, Exercise 3, page 624
// Create and test a SixTuple generic.
import net.mindview.util.*;
class Robot {}
class Amphibian {}
class Vehicle
www.eeworm.com/read/434781/7801837
java classtypecapture24.java
// generics/ClassTypeCapture24.java
// TIJ4 Chapter Generics, Exercise 24, page 667
// Modify Exercise 21 so that factory objects are held in the Map instead of Class.
import java.util.*;
impor
www.eeworm.com/read/434781/7801842
java fibonacci7.java
// generics/Fibonacci7.java
// TIJ4 Chapter Generics, Exercise 7, page 631
// Use composition instead of inheritance to adapt Fibonacci
// to make it interable.
import net.mindview.util.*;
import
www.eeworm.com/read/434781/7801856
java factoryconstraint23.java
// generics/FactoryConstraint23.java
// TIJ4 Chapter Generics, Exercise 23, page 667
// Modify FactoryConstraint.java so that create() takes an argument.
interface FactoryI {
T create(Intege