View Javadoc
1   /******************************************************************************
2    * CookieString.java - A Cookie and the String that made the Cookie
3    * $Id$
4    * 
5    * BuckoFIBS - Backgammon by BuckoSoft
6    * Copyright© 2009,2010 - Dick Balaska - BuckoSoft, Corp.
7    * 
8    * $Log$
9    * Revision 1.1  2011/05/12 13:19:41  dick
10   * A Cookie and a String.
11   *
12   */
13  
14  /* 
15   * This program is free software: you can redistribute it and/or modify
16   * it under the terms of the GNU General Public License as published by
17   * the Free Software Foundation, either version 3 of the License, or
18   * (at your option) any later version.
19   *
20   * This program is distributed in the hope that it will be useful,
21   * but WITHOUT ANY WARRANTY; without even the implied warranty of
22   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23   * GNU General Public License for more details.
24   *
25   * You should have received a copy of the GNU General Public License
26   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
27   *
28   * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>.
29   * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp.
30   * 
31   */
32  
33  package com.buckosoft.fibs.domain;
34  
35  /** A Cookie and the String that made the Cookie
36   * @author Dick Balaska
37   * @since 2011/05/12
38   * @version $Revision$ <br> $Date$
39   * @see com.buckosoft.fibs.net.CookieMonster
40   * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/domain/CookieString.java">cvs CookieString.java</a>
41   */
42  public class CookieString {
43  	private	int		cookie;
44  	private	String	s;
45  	
46  	/** Default constructor
47  	 */
48  	public CookieString() {}
49  
50  	/** Convienence constructor thata stuffs the attributes
51  	 * @param cookie The cookie to use
52  	 * @param s The String that made this cookie
53  	 */
54  	public CookieString(int cookie, String s) {
55  		this.cookie = cookie;
56  		this.s = s;
57  	}
58  
59  	/** Get the Cookie that represents this string
60  	 * @return the cookie
61  	 */
62  	public int getCookie() {
63  		return cookie;
64  	}
65  
66  	/** Set the Cookie that represents this string
67  	 * @param cookie the cookie to set
68  	 */
69  	public void setCookie(int cookie) {
70  		this.cookie = cookie;
71  	}
72  
73  	/** Get the String
74  	 * @return the s
75  	 */
76  	public String getString() {
77  		return s;
78  	}
79  
80  	/** Set the String
81  	 * @param s the s to set
82  	 */
83  	public void setString(String s) {
84  		this.s = s;
85  	}	
86  }