Example usage for com.google.common.collect ImmutableList of

List of usage examples for com.google.common.collect ImmutableList of

Introduction

In this page you can find the example usage for com.google.common.collect ImmutableList of.

Prototype

public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5, E e6, E e7) 

Source Link

Usage

From source file:org.sonar.core.config.ExclusionProperties.java

public static List<PropertyDefinition> all() {
    return ImmutableList.of(

            // COVERAGE
            PropertyDefinition.builder(CoreProperties.PROJECT_COVERAGE_EXCLUSIONS_PROPERTY)
                    .category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_COVERAGE_EXCLUSIONS).type(PropertyType.STRING)
                    .multiValues(true).onQualifiers(Qualifiers.PROJECT, Qualifiers.MODULE).build(),

            // FILES
            PropertyDefinition.builder(CoreProperties.GLOBAL_EXCLUSIONS_PROPERTY)
                    .name("Global Source File Exclusions").multiValues(true)
                    .category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS).index(0).build(),
            PropertyDefinition.builder(CoreProperties.GLOBAL_TEST_EXCLUSIONS_PROPERTY)
                    .name("Global Test File Exclusions").multiValues(true)
                    .category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS).index(1).build(),

            PropertyDefinition.builder(CoreProperties.PROJECT_EXCLUSIONS_PROPERTY)
                    .name("Source File Exclusions").multiValues(true)
                    .category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS).onQualifiers(Qualifiers.PROJECT)
                    .index(0).build(),/*from   w ww .  jav  a2 s  . c  om*/

            PropertyDefinition.builder(CoreProperties.PROJECT_INCLUSIONS_PROPERTY)
                    .name("Source File Inclusions").multiValues(true)
                    .category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS).onQualifiers(Qualifiers.PROJECT)
                    .index(1).build(),
            PropertyDefinition.builder(CoreProperties.PROJECT_TEST_EXCLUSIONS_PROPERTY)
                    .name("Test File Exclusions").multiValues(true).category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS).onQualifiers(Qualifiers.PROJECT)
                    .index(2).build(),
            PropertyDefinition.builder(CoreProperties.PROJECT_TEST_INCLUSIONS_PROPERTY)
                    .name("Test File Inclusions").multiValues(true).category(CoreProperties.CATEGORY_EXCLUSIONS)
                    .subCategory(CoreProperties.SUBCATEGORY_FILES_EXCLUSIONS).onQualifiers(Qualifiers.PROJECT)
                    .index(3).build()

    );
}

From source file:saiba.bmlinfo.DefaultSyncPoints.java

public static String[] getDefaultSyncPoints(String behaviorType) {
    return ImmutableList.of("start", "ready", "stroke_start", "stroke", "stroke_end", "relax", "end")
            .toArray(new String[0]);
}

From source file:org.onosproject.provider.nil.cli.TopologyShapeCompleter.java

@Override
public List<String> choices() {
    return ImmutableList.of("configured", "linear", "reroute", "centipede", "tree", "spineleaf", "mesh");
}

From source file:com.android.tools.idea.uibuilder.handlers.ButtonHandler.java

@Override
@NotNull/*from ww  w .  j a v  a 2s .  com*/
public List<String> getInspectorProperties() {
    return ImmutableList.of(ATTR_STYLE, ATTR_BACKGROUND, ATTR_BACKGROUND_TINT, ATTR_STATE_LIST_ANIMATOR,
            ATTR_ELEVATION, ATTR_VISIBILITY, ATTR_ON_CLICK);
}

From source file:com.android.tools.idea.uibuilder.handlers.CheckBoxHandler.java

@Override
@NotNull// w w  w.ja v a 2s .  co  m
public List<String> getInspectorProperties() {
    return ImmutableList.of(ATTR_STYLE, ATTR_BUTTON, ATTR_BUTTON_TINT, ATTR_CHECKED, ATTR_FOCUSABLE,
            ATTR_CLICKABLE, ATTR_DUPLICATE_PARENT_STATE);
}

From source file:com.android.tools.idea.uibuilder.handlers.AutoCompleteTextViewHandler.java

@Override
@NotNull/*from  ww  w .jav a2s .c  o  m*/
public List<String> getInspectorProperties() {
    return ImmutableList.of(ATTR_COMPLETION_HINT, ATTR_STYLE, ATTR_BACKGROUND_TINT, ATTR_POPUP_BACKGROUND,
            ATTR_DROPDOWN_HEIGHT, ATTR_DROPDOWN_WIDTH, ATTR_IME_OPTIONS);
}