source: fedd/abac-src/rbtm/util/SmallSet.java @ 81a7f3f

axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change on this file since 81a7f3f was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 452 bytes
Line 
1package edu.stanford.peer.rbtm.util;
2
3import java.util.*;
4
5/** A set that typically contains just one member, but may contain
6    more than one.  Using SmallSet instead of HashSet could avoid
7        the cost of creating lots of HashSet when it is not necessary.
8        The current implementation simply extends HashSet.
9 */
10public class SmallSet extends HashSet
11{
12        Object o;
13    public SmallSet(Object o) {
14        super();
15        add(o);
16    }
17}
Note: See TracBrowser for help on using the repository browser.