1   /* LongWrapper
2    *
3    * $Id: LongWrapper.java 4644 2006-09-20 22:40:21Z paul_jack $
4    *
5    * Copyright (C) 2003 Internet Archive.
6    *
7    * This file is part of the Heritrix web crawler (crawler.archive.org).
8    *
9    * Heritrix is free software; you can redistribute it and/or modify
10   * it under the terms of the GNU Lesser Public License as published by
11   * the Free Software Foundation; either version 2.1 of the License, or
12   * any later version.
13   *
14   * Heritrix 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 Public License for more details.
18   *
19   * You should have received a copy of the GNU Lesser Public License
20   * along with Heritrix; if not, write to the Free Software
21   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22   */
23  package org.archive.util;
24  
25  import java.io.Serializable;
26  
27  /***
28   * Wraps a long. Used in place of Long so that when we extract it from a
29   * Collection we can modify the long value without creating a new object.
30   * This way we don't have to rewrite the Collection to update one of the
31   * stored longs.
32   * @author Kristinn Sigurdsson
33   */
34  public class LongWrapper implements Serializable {
35  
36      private static final long serialVersionUID = -6537350490019555280L;
37  
38      public long longValue;
39      public LongWrapper(long initial){
40          this.longValue = initial;
41      }
42  }