代码搜索:comparable
找到约 1,342 项符合「comparable」的源代码
代码结果 1,342
www.eeworm.com/read/155308/11885570
java sortedlist.java
package chapter1;
public class SortedList extends List {
/**
*
* @uml.property name="comp"
* @uml.associationEnd multiplicity="(1 1)"
*/
//排序时用来进行比较时用的接口
private Comparable comp
www.eeworm.com/read/155308/11885588
java~1~ sortedlist.java~1~
package chapter1;
public class SortedList extends List {
/**
*
* @uml.property name="comp"
* @uml.associationEnd multiplicity="(1 1)"
*/
//排序时用来进行比较时用的接口
private Comparable com
www.eeworm.com/read/155308/11885592
java~2~ sortedlist.java~2~
package chapter1;
public class SortedList extends List {
/**
*
* @uml.property name="comp"
* @uml.associationEnd multiplicity="(1 1)"
*/
//排序时用来进行比较时用的接口
private Comparable comp
www.eeworm.com/read/344239/11896978
java hijackedinterface.java
//: generics/HijackedInterface.java
// {CompileTimeError} (Won't compile)
class Cat extends ComparablePet implements Comparable{
// Error: Comparable cannot be inherited with
// differe
www.eeworm.com/read/344239/11897076
java restrictedcomparablepets.java
//: generics/RestrictedComparablePets.java
class Hamster extends ComparablePet
implements Comparable {
public int compareTo(ComparablePet arg) { return 0; }
}
// Or just:
www.eeworm.com/read/344239/11897108
java comparablepet.java
//: generics/ComparablePet.java
public class ComparablePet
implements Comparable {
public int compareTo(ComparablePet arg) { return 0; }
} ///:~
www.eeworm.com/read/344238/11897933
java ex29.java
// holding/Ex29.java
// TIJ4 Chapter Holding, Exercise 29, page 427
/* Fill a PriorityQueue (using offer()) with Double values created using
* java.util.Random, then remove the elements using poll(
www.eeworm.com/read/150914/12245571
java comptype.java
//: c11:CompType.java
// Implementing Comparable in a class.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import com.bruce
www.eeworm.com/read/150914/12245641
java mytype.java
//: c11:MyType.java
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import java.util.*;
public class MyType implements Comp
www.eeworm.com/read/150914/12245654
java mpair.java
//: c11:MPair.java
// A new type of Map.Entry.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import java.util.*;
public