代码搜索:comparable
找到约 1,342 项符合「comparable」的源代码
代码结果 1,342
www.eeworm.com/read/301649/3837369
java huffmantreenode.java
package kava.util;
public class HuffmanTreeNode implements Comparable {
char c;
int freq;
HuffmanTreeNode left;
HuffmanTreeNode right;
HuffmanTreeNode parent;
@Over
www.eeworm.com/read/293917/3927456
cpp fig04_18.cpp
/**
* Internal method to test if an item is in a subtree.
* x is item to search for.
* t is the node that roots the subtree.
*/
bool contains( const Comparable & x, Bi
www.eeworm.com/read/104574/15689713
java timerecord.java
import java.util.*;
class TimeRecord implements Comparable {
protected long seconds;
protected String projectName;
protected String alias;
protected boolean billable;
TimeRecord() {
www.eeworm.com/read/466944/7024083
java myinteger.java
package DataStructures;
/**
* Wrapper class for use with generic data structures.
* Mimics Integer.
* In Java 1.2, you can use Integer if Comparable is needed.
* @au
www.eeworm.com/read/240468/13217717
java treenodecomparetoy.java
package AccordionTreeDrawer;
import java.util.*;
public class TreeNodeCompareToY extends Object implements Comparator {
/** implement Comparable interface - sort on key field */
public int c
www.eeworm.com/read/302925/13824771
java kdtree.java
/**
* Quick illustration of a two-dimensional tree.
*/
public class KdTree
www.eeworm.com/read/486293/6539109
java kdtree.java
/**
* Quick illustration of a two-dimensional tree.
*/
public class KdTree
www.eeworm.com/read/347848/11632419
java pair.java
public class Pair
{
private T first;
private T second;
public T max( )
{
if (first.compareTo(second)
www.eeworm.com/read/130612/14181619
java person.java
import java.io.Serializable;
public class Person implements Comparable, Serializable {
// Constructor
public Person(String firstName, String surname) {
this.firstName = firstName;
t
www.eeworm.com/read/130612/14181644
java person.java
import java.io.Serializable;
public class Person implements Comparable, Serializable {
// Constructor
public Person(String firstName, String surname) {
this.firstName = firstName;
t