org.softevo.ample.eval
Class ClassNameWithWeight
java.lang.Object
org.softevo.ample.eval.ClassNameWithWeight
- All Implemented Interfaces:
- java.lang.Comparable
public class ClassNameWithWeight
- extends java.lang.Object
- implements java.lang.Comparable
Field Summary |
(package private) java.lang.String |
className
|
(package private) double |
weight
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
className
java.lang.String className
weight
double weight
ClassNameWithWeight
public ClassNameWithWeight(java.lang.String name,
double weight)
- Parameters:
name
- weight
-
getClassName
public java.lang.String getClassName()
getWeight
public double getWeight()
compareTo
public int compareTo(java.lang.Object object)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object