KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > framework > eventmgr > ListElement


1 /*******************************************************************************
2  * Copyright (c) 2003, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.osgi.framework.eventmgr;
13
14 /**
15  * ListElement is a package private class. This class
16  * represents a primary object (e.g. listener) and its companion object.
17  * ListElements are stored in EventListeners.
18  * ListElements are immutable.
19  */

20
21 class ListElement {
22     /**
23      * Primary object.
24      */

25     final Object JavaDoc primary;
26
27     /**
28      * Companion object.
29      */

30     final Object JavaDoc companion;
31
32     /**
33      * Constructor for ElementList element
34      * @param primary Primary object in element. Used for uniqueness.
35      * @param companion Companion object stored with primary object.
36      */

37     ListElement(final Object JavaDoc primary, final Object JavaDoc companion) {
38         this.primary = primary;
39         this.companion = companion;
40     }
41 }
Popular Tags