代码搜索:Generics
找到约 1,477 项符合「Generics」的源代码
代码结果 1,477
www.eeworm.com/read/414988/11087430
java holderex2.java
// generics/HolderEx2.java
// TIJ4 Chapter Generics, Exercise 2, page 621
/* Create a holder class that holds three objects of the same type along
* with the methods to store and fetch those objec
www.eeworm.com/read/414988/11087448
java classtypecapture21.java
// generics/ClassTypeCapture21.java
// TIJ4 Chapter Generics, Exercise 21, page 663
/* Modify ClassTypeCapture.java by adding a Map
www.eeworm.com/read/414988/11087468
java ex34.java
// generics/Ex34.java
// TIJ4 Chapter Generics, Exercise 34, page 709
/* Create a self-bounded generic type that contains an abstract method
* that takes an argument of the generic type parameter a
www.eeworm.com/read/414988/11087486
java dynamicproxymixin39.java
// generics/DynamicProxyMixin39.java
// TIJ4 Chapter Generics, Exercise 39, page 721
// Add a new mixin class Colored to DynamicProxyMixin.java, mix it into mixin and
// show that it works.
impor
www.eeworm.com/read/414988/11087488
java genericsequence.java
// generics/GenericSequence.java
// TIJ4 Chapter Generics, Exercise 4, page 624
// 'Generify' innerclasses/Sequence.java.
import java.util.*;
interface Selector {
boolean end();
Object curre
www.eeworm.com/read/430096/8766395
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/430096/8766416
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/430096/8766438
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/430096/8766459
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/430096/8766509
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