001 package data.swing; 002 003 import data.*; 004 005 /** 006 * DataBasketEntryGrouper that can be used to indicate no grouping at all. 007 * 008 * @author Steffen Zschaler 009 * @version 2.0 23/08/1999 010 * @since v2.0 011 */ 012 public final class NOPDataBasketEntryGrouper extends Object implements DataBasketEntryGrouper { 013 014 /** 015 * Returns false. 016 * 017 * @override Never 018 * 019 * @return false. 020 */ 021 public final boolean canGroup(DataBasketEntry dbe1, DataBasketEntry dbe2) { 022 return false; 023 } 024 025 /** 026 * Returns <code>dbe1</code>. 027 * 028 * @override Never 029 * 030 * @return <code>dbe1</code> 031 */ 032 public final DataBasketEntry group(DataBasketEntry dbe1, DataBasketEntry dbe2) { 033 return dbe1; 034 } 035 036 /** 037 * Convenience variable holding an instance of NOPDataBasketEntryGrouper. 038 */ 039 public static final DataBasketEntryGrouper NO_GROUPS = new NOPDataBasketEntryGrouper(); 040 }