|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.util.selection.Selection.Entry<E>
E
- The Comparable
type.public static final class Selection.Entry<E>
This class provides the notion of an entry within a list for the selection process.
This class is is final and non-instantiable to ensure that the operations are allowed to be applied, however, additional metadata can be recored and used during the selection process.
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determine if the provided obj is equal to the currently
decorated element within this Entry . |
E |
getElement()
Get the element that this Entry represents. |
double |
getWeight()
Obtain the weight value associated with this Entry . |
int |
hashCode()
Obtain the hash of the decorated element . |
void |
setWeight(double weight)
Set the weight value for the current Entry
within the Selection . |
String |
toString()
Obtain the String of the decorated element . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public E getElement()
element
that this Entry
represents.
element
.public double getWeight()
Entry
.
The weight value need not be set. It is not always used.
weight
value.public void setWeight(double weight)
weight
value for the current Entry
within the Selection
.
weight
- The weight
value to set.public boolean equals(Object obj)
obj
is equal to the currently
decorated element within this Entry
.
equals
in class Object
obj
- The object instance to compare.
true
if the objects are equal, false
otherwipublic int hashCode()
element
.
hashCode
in class Object
public String toString()
String
of the decorated element
.
toString
in class Object
toString()
of the decorated element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |