|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.shop.model.PriceComparator
public class PriceComparator
utility comparator used by
ShopItem.getAvailablePrices(org.torweg.pulse.accesscontrol.User).
| Constructor Summary | |
|---|---|
protected |
PriceComparator()
creates a new PriceComparator. |
| Method Summary | |
|---|---|
int |
compare(Price p1, Price p2)
compares the two given Prices by the minimal order size and
by the net amount. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
protected PriceComparator()
PriceComparator.
| Method Detail |
|---|
public final int compare(Price p1, Price p2)
Prices by the minimal order size and
by the net amount.
compare in interface java.util.Comparator<Price>p1 - the first pricep2 - the second price
Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||