Module com.aoapps.dao.base
Package com.aoapps.dao.base
Class AbstractRow<K extends Comparable<? super K>,R extends AbstractRow<K,?> & Comparable<? super R>>
java.lang.Object
com.aoapps.dao.base.AbstractRow<K,R>
- All Implemented Interfaces:
Row<K,R>
public abstract class AbstractRow<K extends Comparable<? super K>,R extends AbstractRow<K,?> & Comparable<? super R>>
extends Object
implements Row<K,R>
Base for
Row implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe default ordering is based on key comparison.booleanBy default equality is based on same model, compatible class, and equal canonical key objects.protected ModelgetModel()inthashCode()The default hashCode is based on the key value.toString()The default String representation is the key value.
-
Constructor Details
-
AbstractRow
-
-
Method Details
-
toString
The default String representation is the key value. -
hashCode
public int hashCode()The default hashCode is based on the key value.Note: This hash code is only consistent with
equals(java.lang.Object)when this row is canonical. -
equals
By default equality is based on same model, compatible class, and equal canonical key objects. -
compareTo
The default ordering is based on key comparison. If both keys are Strings, will use the model comparator. -
getModel
-
