From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- source/com/c2kernel/utils/CastorArrayList.java | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 source/com/c2kernel/utils/CastorArrayList.java (limited to 'source/com/c2kernel/utils/CastorArrayList.java') diff --git a/source/com/c2kernel/utils/CastorArrayList.java b/source/com/c2kernel/utils/CastorArrayList.java new file mode 100755 index 0000000..10ff948 --- /dev/null +++ b/source/com/c2kernel/utils/CastorArrayList.java @@ -0,0 +1,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 implements Serializable{ + public ArrayList list = new ArrayList(); + + public CastorArrayList() { + super(); + list = new ArrayList(); + } + + public CastorArrayList(ArrayList list) { + this(); + this.list = list; + } +} -- cgit v1.2.3