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 * ID for serialization. 016 */ 017 private static final long serialVersionUID = -5761200106411237620L; 018 019 /** 020 * Returns false. 021 * 022 * @override Never 023 * 024 * @return false. 025 */ 026 public final boolean canGroup(DataBasketEntry dbe1, DataBasketEntry dbe2) { 027 return false; 028 } 029 030 /** 031 * Returns <code>dbe1</code>. 032 * 033 * @override Never 034 * 035 * @return <code>dbe1</code> 036 */ 037 public final DataBasketEntry group(DataBasketEntry dbe1, DataBasketEntry dbe2) { 038 return dbe1; 039 } 040 041 /** 042 * Convenience variable holding an instance of NOPDataBasketEntryGrouper. 043 */ 044 public static final DataBasketEntryGrouper NO_GROUPS = new NOPDataBasketEntryGrouper(); 045 }