connectivity/com.nokia.tcf/src/com/nokia/tcf/impl/TCErrorListenerList.java
author cawthron
Tue, 24 Mar 2009 22:20:21 -0500
changeset 2 d760517a8095
permissions -rw-r--r--
new
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/*
cawthron
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
cawthron
parents:
diff changeset
     3
* All rights reserved.
cawthron
parents:
diff changeset
     4
* This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
* which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
*
cawthron
parents:
diff changeset
     9
* Initial Contributors:
cawthron
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
*
cawthron
parents:
diff changeset
    12
* Contributors:
cawthron
parents:
diff changeset
    13
*
cawthron
parents:
diff changeset
    14
* Description: 
cawthron
parents:
diff changeset
    15
*
cawthron
parents:
diff changeset
    16
*/
cawthron
parents:
diff changeset
    17
/**
cawthron
parents:
diff changeset
    18
 * 
cawthron
parents:
diff changeset
    19
 */
cawthron
parents:
diff changeset
    20
package com.nokia.tcf.impl;
cawthron
parents:
diff changeset
    21
cawthron
parents:
diff changeset
    22
import java.util.ArrayList;
cawthron
parents:
diff changeset
    23
cawthron
parents:
diff changeset
    24
public class TCErrorListenerList<ITCErrorListener> extends ArrayList<ITCErrorListener> {
cawthron
parents:
diff changeset
    25
cawthron
parents:
diff changeset
    26
	/**
cawthron
parents:
diff changeset
    27
	 * 
cawthron
parents:
diff changeset
    28
	 */
cawthron
parents:
diff changeset
    29
	private static final long serialVersionUID = 4097007367675340218L;
cawthron
parents:
diff changeset
    30
cawthron
parents:
diff changeset
    31
	/**
cawthron
parents:
diff changeset
    32
	 * our add overrides ArrayList.add in order throw NullPointerException
cawthron
parents:
diff changeset
    33
	 */
cawthron
parents:
diff changeset
    34
	@Override
cawthron
parents:
diff changeset
    35
	public boolean add(ITCErrorListener o) throws NullPointerException {
cawthron
parents:
diff changeset
    36
		if (o == null) throw new NullPointerException();
cawthron
parents:
diff changeset
    37
		return super.add(o);
cawthron
parents:
diff changeset
    38
	}
cawthron
parents:
diff changeset
    39
cawthron
parents:
diff changeset
    40
}