org.beanfabrics.model
Class BigDecimalPM.BigDecimalComparable

java.lang.Object
  extended by org.beanfabrics.model.TextPM.TextComparable
      extended by org.beanfabrics.model.BigDecimalPM.BigDecimalComparable
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
BigDecimalPM

protected class BigDecimalPM.BigDecimalComparable
extends TextPM.TextComparable

The BigDecimalPM.BigDecimalComparable delegates the comparison to the model's BigDecimal value if available, or otherwise falls back to the super.compareTo(...).


Constructor Summary
BigDecimalPM.BigDecimalComparable()
          Constructs a BigDecimalPM.BigDecimalComparable.
 
Method Summary
 int compareTo(java.lang.Object o)
          
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalPM.BigDecimalComparable

public BigDecimalPM.BigDecimalComparable()
Constructs a BigDecimalPM.BigDecimalComparable.

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Description copied from class: TextPM.TextComparable

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class TextPM.TextComparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class TextPM.TextComparable

hashCode

public int hashCode()
Overrides:
hashCode in class TextPM.TextComparable