SalesPoint Framework v3.1

data.swing
Class NOPDataBasketEntryGrouper

java.lang.Object
  extended bydata.swing.NOPDataBasketEntryGrouper
All Implemented Interfaces:
DataBasketEntryGrouper, Serializable

public final class NOPDataBasketEntryGrouper
extends Object
implements DataBasketEntryGrouper

DataBasketEntryGrouper that can be used to indicate no grouping at all.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
Serialized Form

Field Summary
static DataBasketEntryGrouper NO_GROUPS
          Convenience variable holding an instance of NOPDataBasketEntryGrouper.
 
Constructor Summary
NOPDataBasketEntryGrouper()
           
 
Method Summary
 boolean canGroup(DataBasketEntry dbe1, DataBasketEntry dbe2)
          Returns false.
 DataBasketEntry group(DataBasketEntry dbe1, DataBasketEntry dbe2)
          Returns dbe1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_GROUPS

public static final DataBasketEntryGrouper NO_GROUPS
Convenience variable holding an instance of NOPDataBasketEntryGrouper.

Constructor Detail

NOPDataBasketEntryGrouper

public NOPDataBasketEntryGrouper()
Method Detail

canGroup

public final boolean canGroup(DataBasketEntry dbe1,
                              DataBasketEntry dbe2)
Returns false.

Specified by:
canGroup in interface DataBasketEntryGrouper
Returns:
false.
Override:
Never

group

public final DataBasketEntry group(DataBasketEntry dbe1,
                                   DataBasketEntry dbe2)
Returns dbe1.

Specified by:
group in interface DataBasketEntryGrouper
Returns:
dbe1
Override:
Never

SalesPoint Framework v3.1