KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > chaperon > build > EmptyList


1 /*
2  * Copyright (C) Chaperon. All rights reserved.
3  * -------------------------------------------------------------------------
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE file.
7  */

8
9 package net.sourceforge.chaperon.build;
10
11 import net.sourceforge.chaperon.model.symbol.Symbol;
12
13 /**
14  * This symbol represents a symbol for a empty list.
15  *
16  * @author <a HREF="mailto:stephan@apache.org">Stephan Michels</a>
17  * @version CVS $Id: EmptyList.java,v 1.4 2003/12/09 19:55:52 benedikta Exp $
18  */

19 public class EmptyList extends Symbol
20 {
21   /**
22    * Creates a symbol for an empty list.
23    */

24   public EmptyList()
25   {
26     super("EmptyList");
27   }
28
29   /**
30    * Compares the symbol with another symbol.
31    *
32    * @param o Another object
33    *
34    * @return True, if the symbols are equal.
35    */

36   public boolean equals(Object JavaDoc o)
37   {
38     if ((o!=null) && (o instanceof EmptyList))
39       return true;
40
41     return false;
42   }
43 }
44
Popular Tags