|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbiggests.clustering.ClusterTreeNodeComparator
public class ClusterTreeNodeComparator
Title: Hierarchical Cluster Tree Node Comparator
Description: Implements Comparator interface. Allows comparison operations between two cluster tree nodes.
Copyright: Copyright (C) 2007 Joana Gonçalves This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Constructor Summary | |
|---|---|
ClusterTreeNodeComparator()
Creates a new cluster tree node comparator. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two ClusterTreeNodes, o1
and o2. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this Comparator. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusterTreeNodeComparator()
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
ClusterTreeNodes, o1
and o2. Implements Comparator's
compare method. Returns a negative integer, 0 or
positive integer if o1 is less than, equal to,
or greater than o2.
compare in interface java.util.Comparatoro1 - Object the first ClusterTreeNode
to compareo2 - Object the second ClusterTreeNode
to compare
o1 is less than, equal to,
or greater than o2public boolean equals(java.lang.Object obj)
equals in interface java.util.Comparatorequals in class java.lang.Objectobj - the Object to compare with this Comparator
true if obj is equal to this Comparator,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||