List of usage examples for com.google.common.collect ImmutableList of
public static <E> ImmutableList<E> of(E e1, E e2)
From source file:org.sonar.plugins.doxygen.DoxygenPlugin.java
public static List<PropertyDefinition> generalProperties() { String subcateg = "General"; return ImmutableList.of(PropertyDefinition.builder(DOXYGEN_ENABLE_PROPERTY_KEY).defaultValue("false") .name("Disable Doxygen Import") .description(/*from w w w . ja v a 2 s .com*/ "Whether or not the plugin should link the current project to a external doxygen documentation") .subCategory(subcateg).type(PropertyType.BOOLEAN).onQualifiers(Qualifiers.PROJECT).index(1).build(), PropertyDefinition.builder(DEPLOYMENT_URL).name("Link of documentation") .description("Documentation server url").subCategory(subcateg) .onQualifiers(Qualifiers.PROJECT).index(2).build()); }
From source file:com.thinkbiganalytics.metadata.jpa.support.JobStatusDslQueryExpressionBuilder.java
public static StringExpression jobState() { List<BatchJobExecution.JobStatus> runningStatus = ImmutableList.of(BatchJobExecution.JobStatus.STARTED, BatchJobExecution.JobStatus.STARTING); CaseBuilder.Cases<String, StringExpression> jobStateCase = new CaseBuilder() .when(jobExecution.status.in(runningStatus)).then(BatchJobExecution.RUNNING_DISPLAY_STATUS); for (BatchJobExecution.JobStatus stat : BatchJobExecution.JobStatus.values()) { if (stat != BatchJobExecution.JobStatus.STARTING && stat != BatchJobExecution.JobStatus.STARTED && stat != BatchJobExecution.JobStatus.UNKNOWN) { jobStateCase.when(jobExecution.status.eq(stat)).then(stat.name()); }//from ww w . j ava2 s . c om } return jobStateCase.otherwise(BatchJobExecution.JobStatus.UNKNOWN.name()); }
From source file:org.sonar.server.platform.cluster.ClusterProperties.java
public static List<PropertyDefinition> definitions() { return ImmutableList.of( PropertyDefinition.builder(ENABLED).type(PropertyType.BOOLEAN).defaultValue(String.valueOf(false)) .hidden().build(),//from www . j av a 2 s. co m PropertyDefinition.builder(STARTUP_LEADER).type(PropertyType.BOOLEAN) .defaultValue(String.valueOf(false)).hidden().build()); }
From source file:org.sonar.plugins.resharper.JsReSharperProvider.java
public static List extensions() { return ImmutableList.of(JsReSharperRuleRepository.class, JsReSharperSensor.class); }
From source file:org.sonar.plugins.resharper.WebReSharperProvider.java
public static List extensions() { return ImmutableList.of(WebReSharperRuleRepository.class, WebReSharperSensor.class); }
From source file:org.sonar.plugins.resharper.CssReSharperProvider.java
public static List extensions() { return ImmutableList.of(CssReSharperRuleRepository.class, CssReSharperSensor.class); }
From source file:com.mysema.query.types.PredicateOperation.java
public static PredicateOperation create(Operator<Boolean> operator, Expression<?> one, Expression<?> two) { return new PredicateOperation(operator, ImmutableList.of(one, two)); }
From source file:org.sonar.plugins.resharper.CSharpReSharperProvider.java
public static List extensions() { return ImmutableList.of(CSharpReSharperRuleRepository.class, CSharpReSharperSensor.class); }
From source file:com.google.devtools.build.xcode.util.Interspersing.java
/** * Inserts {@code what} before each item in {@code sequence}, returning a lazy sequence of twice * the length.//from w w w . j av a2s. c o m */ public static <E> Iterable<E> beforeEach(final E what, Iterable<E> sequence) { Preconditions.checkNotNull(what); return Iterables.concat(Iterables.transform(sequence, new Function<E, Iterable<E>>() { @Override public Iterable<E> apply(E element) { return ImmutableList.of(what, element); } })); }
From source file:org.sonar.plugins.resharper.VBNetReSharperProvider.java
public static List extensions() { return ImmutableList.of(VBNetReSharperRuleRepository.class, VBNetReSharperSensor.class); }