summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/utils/CastorArrayList.java
blob: ea9a09001004981da30a5865a1f9223f74a28ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.c2kernel.utils;

import java.io.Serializable;
import java.util.ArrayList;

/**************************************************************************
 * Wrapper for a root element to an ArrayList. Castor Marshalls arraylists
 * as multiple elements, so this class is needed to provide a root element
 * to stop it crashing.
 *
 * $Revision: 1.4 $
 * $Date: 2004/01/22 11:17:42 $
 *
 * Copyright (C) 2003 CERN - European Organization for Nuclear Research
 * All rights reserved.
 **************************************************************************/
//
abstract public class CastorArrayList<T> implements Serializable {
    public ArrayList<T> list;

    public CastorArrayList() {
        super();
		list = new ArrayList<T>();
    }

    public CastorArrayList(ArrayList<T> list) {
        this();
        this.list = list;
    }
}