test_class.file: ndbc-core/src/test/java/io/trane/ndbc/util/CollectionsTest.java
test_class.identifier: CollectionsTest
test_case.body: @Test
    public void toImmutableSet() {
      final Set<Integer> set = Collections.toImmutableSet(1, 2, 3);
      assertEquals(3, set.size());
      assertTrue(set.contains(1));
      assertTrue(set.contains(2));
      assertTrue(set.contains(3));
    }
test_case.class_method_signature: CollectionsTest.toImmutableSet()
test_case.full_signature: @Test public void toImmutableSet()
test_case.identifier: toImmutableSet
test_case.invocations: toImmutableSet assertEquals size assertTrue contains assertTrue contains assertTrue contains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toImmutableSet()
focal_class.file: ndbc-core/src/main/java/io/trane/ndbc/util/Collections.java
focal_class.identifier: Collections
focal_class.class_method_signature: Collections.toImmutableSet(final T... items)
focal_class.full_signature: @SafeVarargs public static final Set<T> toImmutableSet(final T... items)
focal_class.identifier: toImmutableSet
focal_class.modifiers: @SafeVarargs public static final
focal_class.parameters: (final T... items)
focal_class.return: Set<T>
focal_class.signature: Set<T> toImmutableSet(final T... items)
focal_method.body: @SafeVarargs
    public static final <T> Set<T> toImmutableSet(final T... items) {
      final Set<T> set = new HashSet<>();
      for (final T item : items)
        set.add(item);
      return java.util.Collections.unmodifiableSet(set);
    }
focal_method.class_method_signature: Collections.toImmutableSet(final T... items)
focal_method.full_signature: @SafeVarargs public static final Set<T> toImmutableSet(final T... items)
focal_method.identifier: toImmutableSet
focal_method.invocations: add unmodifiableSet
focal_method.modifiers: @SafeVarargs public static final
focal_method.parameters: (final T... items)
focal_method.return: Set<T>
focal_method.signature: Set<T> toImmutableSet(final T... items)