org.ojalgo.optimisation
Class ModelEntity<ME extends ModelEntity<ME>>

java.lang.Object
  extended by org.ojalgo.optimisation.ModelEntity<ME>
All Implemented Interfaces:
Comparable<ME>
Direct Known Subclasses:
CombinationModel, ConstraintsBasedModel, ExpressionsBasedModel, ModelComponent

public abstract class ModelEntity<ME extends ModelEntity<ME>>
extends Object
implements Comparable<ME>

Model entities are identified by their names only. Any/all other members/attributes should NOT be part of equals() or hashCode().

Author:
apete

Method Summary
 int compareTo(ME obj)
           
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(ME obj)
Specified by:
compareTo in interface Comparable<ME extends ModelEntity<ME>>

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getName

public String getName()

hashCode

public final int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()