/* * IntBucket.java - Integer buckets, a demonstrator class for synchro lists. * * Copyright (c) 1998, Charles McManis, All Rights Reserved. * Permission to use, copy, modify, and distribute this software * and its documentation for NON-COMMERCIAL purposes and without * fee is hereby granted provided that this copyright notice * appears in all copies. * * CHUCK MCMANIS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE * SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. CHUCK MCMANIS * SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT * OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ /** * An integer bucket is a simple class that holds an integer and a "position" * value. The SynchroList code is hacked to install position information into * the bucket when it is enumerated so that the applet can show elements lined * up on the pages. */ public class IntBucket { public int position; public int value; public IntBucket(int aValue) { value = aValue; } public String toString() { return "bucket:"+value; } }