代码搜索:comparable
找到约 1,342 项符合「comparable」的源代码
代码结果 1,342
www.eeworm.com/read/230049/14307112
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/230049/14307201
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/230049/14307213
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
www.eeworm.com/read/127767/14337026
txt e064. listing the interfaces that a class implements.txt
Class cls = java.lang.String.class;
Class[] intfs = cls.getInterfaces();
// [java.lang.Comparable, java.lang.CharSequence, java.io.Serializable]
// The interfaces for a primitive
www.eeworm.com/read/228290/14393758
cpp maxsum.cpp
#include
#ifdef USE_DOT_H
#include
#include
#else
#include
#include
#if !defined( __BORLANDC__ ) || __BORLANDC__ >= 0x053
www.eeworm.com/read/223107/14657769
java sortedlist.java
package chapter1;
public class SortedList extends List
{
//排序时用来进行比较时用的接口
private Comparable comp;
//类的构造方法,以Comparable为参数
public SortedList (Comparable _comp)
{
comp = _comp;
}
www.eeworm.com/read/222578/14685230
java rientry.java
import com.sun.javadoc.*;
public class RiEntry implements Comparable {
public String name;
public Doc doc;
public RiEntry(String n, Doc d) { name = n; doc = d; }
public S
www.eeworm.com/read/120429/14803832
java caseinsensitivestring.java
/**
* Case-insensitive string. Case of the original string is
* preserved by toString, but ignored in comparisons.
* This version implements Comparable. - Page 56
*/
import java.util.*;