List of usage examples for com.google.common.collect ImmutableList of
public static <E> ImmutableList<E> of(E element)
From source file:com.facebook.buck.test.FakeTestResults.java
public static TestResults newFailedInstance(String name) { String testCaseName = name;/* ww w . j a v a 2 s . c o m*/ TestResultSummary testResultSummary = new TestResultSummary(testCaseName, null, ResultType.FAILURE, 0, null, null, null, null); TestCaseSummary testCase = new TestCaseSummary(testCaseName, ImmutableList.of(testResultSummary)); ImmutableList<TestCaseSummary> testCases = ImmutableList.of(testCase); return FakeTestResults.of(testCases); }
From source file:org.sonar.plugins.jproperties.SonarScannerJavaPropertiesRulesDefinition.java
@SuppressWarnings("rawtypes") public static Collection<Class> getChecks() { return ImmutableList.of(SonarScannerDeprecatedPropertiesCheck.class); }
From source file:br.com.objectos.way.ssh.ScpUploadChannelFailed.java
ScpUploadChannelFailed(Exception e) {
this.exceptions = ImmutableList.of(e);
}
From source file:com.facebook.presto.session.FileSessionPropertyManagerPlugin.java
@Override public Iterable<SessionPropertyConfigurationManagerFactory> getSessionPropertyConfigurationManagerFactories() { return ImmutableList.of(new FileSessionPropertyManagerFactory()); }
From source file:com.pressassociation.pr.match.Leaf.java
/** * Create a new Leaf from a single part. *//* w w w. ja v a 2s . com*/ public static Leaf of(String pathPart) { return new Leaf(ImmutableList.of(pathPart)); }
From source file:com.helion3.bedrock.commands.BedrockCommands.java
public static CommandSpec getCommand() { ImmutableMap.Builder<List<String>, CommandCallable> builder = ImmutableMap .<List<String>, CommandCallable>builder(); builder.put(ImmutableList.of("reload"), ReloadCommand.getCommand()); return CommandSpec.builder().executor((src, args) -> { src.sendMessage(Text.of(Format.heading(TextColors.GRAY, "By ", TextColors.GOLD, "viveleroi.\n"), TextColors.GRAY, "IRC: ", TextColors.WHITE, "irc.esper.net #prism")); return CommandResult.empty(); }).children(builder.build()).build(); }
From source file:com.spectralogic.ds3autogen.java.test.helpers.Ds3ResponseCodeFixtureTestHelper.java
/** * Creates a populated Ds3ResponseCode with a 400 response code *///www.j ava2s.co m public static Ds3ResponseCode createPopulatedErrorResponseCode(final String variation) { return new Ds3ResponseCode(400, ImmutableList.of(new Ds3ResponseType("com.spectralogic.Test.Type" + variation, null))); }
From source file:com.facebook.presto.geospatial.GeoPlugin.java
@Override public Iterable<Type> getTypes() { return ImmutableList.of(GEOMETRY); }
From source file:com.wrmsr.wava.java.javac.option.LintOption.java
@Override public List<String> getArgs() { return ImmutableList.of(arg); }
From source file:de.metas.ui.web.window.descriptor.filters.ImmutableDocumentFilterDescriptorsProvider.java
public static final ImmutableDocumentFilterDescriptorsProvider of(final DocumentFilterDescriptor descriptor) { if (descriptor == null) { return NULL; }//from ww w. jav a 2 s.co m return new ImmutableDocumentFilterDescriptorsProvider(ImmutableList.of(descriptor)); }