KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > patterns > ordereddata > data > OrderedData


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: OrderedData.java,v 1.3 2007/01/07 06:15:19 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21
22 package org.opensubsystems.patterns.ordereddata.data;
23
24 /**
25  * Interface for objects supporting ordering based on some attribute.
26  *
27  * @version $Id: OrderedData.java,v 1.3 2007/01/07 06:15:19 bastafidli Exp $
28  * @author Peter Satury
29  * @code.reviewer Miro Halas
30  * @code.reviewed Initial revision
31  */

32 public interface OrderedData
33 {
34    /**
35     * Return value of attribute which signifies the order or the data.
36     *
37     * @return int - order identifier
38     */

39    int getOrderNumber();
40    
41    /**
42     * Method sets order number of the dataobject.
43     *
44     * @param iOrderNumber - new order number value
45     */

46    void setOrderNumber(
47       int iOrderNumber
48    );
49 }
50
Popular Tags