Save This Page
Home » openjdk-7 » net.bonzoun » cocodonkey » [javadoc | source]
    1   //
    2   //  GenericItem.java
    3   //  CocoDonkey
    4   //  $Id: QueryItem.java,v 1.1.1.1 2002/05/21 21:26:13 fortun Exp $
    5   //
    6   //  Created by Fred Bonzoun on Sun May 12 2002.
    7   //  Copyright (c) 2002 Bonzoun. All rights reserved.
    8   //
    9   //  This library is free software; you can redistribute it and/or modify
   10   //  it under the terms of the GNU Lesser General Public License as published
   11   //  by the Free Software Foundation; either version 2.1 of the License, or
   12   //  (at your option) any later version.
   13   //
   14   //  This library is distributed in the hope that it will be useful,
   15   //  but WITHOUT ANY WARRANTY; without even the implied warranty of
   16   //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   17   //  GNU Lesser General Public License for more details.
   18   //
   19   //  You should have received a copy of the GNU Lesser General Public License
   20   //  along with this program; if not, write to the Free Software
   21   //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   22   //
   23   
   24   package net.bonzoun.cocodonkey;
   25   
   26   public class QueryItem {
   27   
   28       protected int id;
   29       protected String query;
   30       protected int toGo;
   31   
   32       /*package*/ QueryItem(int id, String query, int toGo) {
   33           this.id = id;
   34           this.query = query;
   35           this.toGo = toGo;
   36       }
   37   
   38       public int id() {
   39           return id;
   40       }
   41   
   42       public String query() {
   43           return query;
   44       }
   45   
   46       public int toGo() {
   47           return toGo;
   48       }
   49   
   50       public String toString() {
   51           return query;
   52       }
   53   }
   54   
   55   // $Log: QueryItem.java,v $
   56   // Revision 1.1.1.1  2002/05/21 21:26:13  fortun
   57   //
   58   //

Save This Page
Home » openjdk-7 » net.bonzoun » cocodonkey » [javadoc | source]