test_class.file: ui/api/src/test/java/org/jboss/forge/addon/ui/util/SelectionsTest.java
test_class.identifier: SelectionsTest
test_case.body: @Test
     public void testRegionIsPresent()
     {
        List<String> list = Arrays.asList("A", "B", "C");
        UISelection<String> selection = Selections.from(r -> UIRegionBuilder.create(r).text(r), list);
        Assert.assertTrue(selection.getRegion().isPresent());
        Assert.assertEquals("A", selection.getRegion().get().getText().get());
     }
test_case.class_method_signature: SelectionsTest.testRegionIsPresent()
test_case.full_signature: @Test public void testRegionIsPresent()
test_case.identifier: testRegionIsPresent
test_case.invocations: asList from text create assertTrue isPresent getRegion assertEquals get getText get getRegion
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRegionIsPresent()
focal_class.file: ui/api/src/main/java/org/jboss/forge/addon/ui/util/Selections.java
focal_class.identifier: Selections
focal_class.class_method_signature: Selections.from(SELECTIONTYPE... type)
focal_class.full_signature: @SuppressWarnings({ "unchecked", "rawtypes" }) public static UISelection<SELECTIONTYPE> from(SELECTIONTYPE... type)
focal_class.identifier: from
focal_class.modifiers: @SuppressWarnings({ "unchecked", "rawtypes" }) public static
focal_class.parameters: (SELECTIONTYPE... type)
focal_class.return: UISelection<SELECTIONTYPE>
focal_class.signature: UISelection<SELECTIONTYPE> from(SELECTIONTYPE... type)
focal_class.class_method_signature: Selections.from(Iterable<SELECTIONTYPE> type)
focal_class.full_signature: public static UISelection<SELECTIONTYPE> from(Iterable<SELECTIONTYPE> type)
focal_class.identifier: from
focal_class.modifiers: public static
focal_class.parameters: (Iterable<SELECTIONTYPE> type)
focal_class.return: UISelection<SELECTIONTYPE>
focal_class.signature: UISelection<SELECTIONTYPE> from(Iterable<SELECTIONTYPE> type)
focal_class.class_method_signature: Selections.from(Function<SELECTIONTYPE, UIRegion> regions,
              Iterable<SELECTIONTYPE> type)
focal_class.full_signature: @SuppressWarnings({ "unchecked", "rawtypes" }) public static UISelection<SELECTIONTYPE> from(Function<SELECTIONTYPE, UIRegion> regions,
              Iterable<SELECTIONTYPE> type)
focal_class.identifier: from
focal_class.modifiers: @SuppressWarnings({ "unchecked", "rawtypes" }) public static
focal_class.parameters: (Function<SELECTIONTYPE, UIRegion> regions,
              Iterable<SELECTIONTYPE> type)
focal_class.return: UISelection<SELECTIONTYPE>
focal_class.signature: UISelection<SELECTIONTYPE> from(Function<SELECTIONTYPE, UIRegion> regions,
              Iterable<SELECTIONTYPE> type)
focal_class.class_method_signature: Selections.emptySelection()
focal_class.full_signature: @SuppressWarnings("unchecked") public static UISelection<SELECTIONTYPE> emptySelection()
focal_class.identifier: emptySelection
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: ()
focal_class.return: UISelection<SELECTIONTYPE>
focal_class.signature: UISelection<SELECTIONTYPE> emptySelection()
focal_method.body: @SuppressWarnings({ "unchecked", "rawtypes" })
     public static <SELECTIONTYPE> UISelection<SELECTIONTYPE> from(SELECTIONTYPE... type)
     {
        if (type == null || type.length == 0 || type[0] == null)
        {
           return emptySelection();
        }
        else
        {
           if (type.length == 1 && type[0] instanceof Iterable)
           {
              return new SelectionImpl((Iterable<SELECTIONTYPE>) type[0]);
           }
           else
           {
              return new SelectionImpl(type);
           }
        }
     }
focal_method.class_method_signature: Selections.from(SELECTIONTYPE... type)
focal_method.full_signature: @SuppressWarnings({ "unchecked", "rawtypes" }) public static UISelection<SELECTIONTYPE> from(SELECTIONTYPE... type)
focal_method.identifier: from
focal_method.invocations: emptySelection
focal_method.modifiers: @SuppressWarnings({ "unchecked", "rawtypes" }) public static
focal_method.parameters: (SELECTIONTYPE... type)
focal_method.return: UISelection<SELECTIONTYPE>
focal_method.signature: UISelection<SELECTIONTYPE> from(SELECTIONTYPE... type)