source: fedd/abac-src/rbtm/util/SmallSet.java @ 4adc697

version-1.30
Last change on this file since 4adc697 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.