axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change
on this file since eec716b 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
|
Rev | Line | |
---|
[8780cbec] | 1 | package edu.stanford.peer.rbtm.util; |
---|
| 2 | |
---|
| 3 | import 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 | */ |
---|
| 10 | public 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.