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
-
Method Summary
Modifier and TypeMethodDescriptionint
The default ordering is based on key comparison.boolean
By default equality is based on same model, compatible class, and equal canonical key objects.protected Model
getModel()
int
hashCode()
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. -
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
-