Why Set? I prefer Collection or List, because you can use quick-constructions, such as Arrays.asList(A, B). Or you can use Enumerations - getSessions(String... sessionIds).