Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/hoodui/HoodSet.java

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/*
 * Set Collection.
 *
 * Copyright 2000 Andy Gill
 *
 * $Revision: 1.1 $
 * $Date: 2000/09/15 16:14:17 $
 */

import java.util.*;
/**
 * @version 0.1
 * @author Andy Gill
 */

class HoodSet extends HoodColl {
    Hashtable ht;
    static Integer commonObject = new Integer(99);

    public HoodSet() {
	ht = new Hashtable();
    }

    public Enumeration elements() {
	return ht.keys();
    }

    public void addElement(Object ele) {
	ht.put(ele,commonObject);
    }
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.