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

@SuppressWarnings("unchecked")
    public static <E> ImmutableList<E> of() 

Source Link

Usage

From source file:cpw.mods.fml.common.asm.transformers.DeobfuscationTransformer.java

private static List<String> getForcedPrefixes() {
    if (forcedPrefixes == null) {
        String prefixList = System.getProperty("fml.forcedDeobfuscationPrefixes");
        if (prefixList != null && FMLDeobfuscatingRemapper.INSTANCE.isDeobfuscationDataLoaded()) {
            forcedPrefixes = ImmutableList.copyOf(Splitter.on(';').split(prefixList));
            FMLRelaunchLog.fine("Prefixes selected for deobfuscation: " + prefixList);
        } else {//from www  .  j ava  2 s. c  o m
            forcedPrefixes = ImmutableList.of();
        }
    }

    return forcedPrefixes;
}

From source file:com.spotify.heroic.metadata.DeleteSeries.java

public static DeleteSeries of(final int deleted, final int failed) {
    return new DeleteSeries(ImmutableList.of(), deleted, failed);
}

From source file:com.cdancy.bitbucket.rest.domain.repository.HookSettings.java

/**
 * Create a HookSettings instance from the passed JsonElement. Method
 * is safe for client use./*from  w  w w.j  a va2s .c  o m*/
 * 
 * @param settings JsonElement representing HookSettings.
 * @return HookSettings
 */
public static HookSettings of(final JsonElement settings) {
    return new AutoValue_HookSettings(ImmutableList.of(), BitbucketUtils.nullToJsonElement(settings));
}

From source file:com.spotify.heroic.metric.FetchData.java

public static Result result(final QueryTrace trace) {
    return new Result(trace, ImmutableList.of());
}

From source file:com.isotrol.impe3.web20.server.TimeMapConfig.java

public static TimeMapConfig create(long seconds, boolean global, List<Long> intervals) {
    if (intervals == null) {
        intervals = ImmutableList.of();
    }//  ww w. ja  v  a 2 s  . co  m
    if (intervals.isEmpty()) {
        return delay(seconds);
    }
    return new Regular(seconds, global, intervals);
}

From source file:org.mayocat.store.InvalidEntityException.java

public InvalidEntityException(String message) {
    super(message);
    errors = ImmutableList.of();
}

From source file:com.spotify.heroic.metadata.FindSeriesIds.java

public static FindSeriesIds of() {
    return new FindSeriesIds(ImmutableList.of(), ImmutableSet.of(), false);
}

From source file:com.spotify.heroic.suggest.TagValueSuggest.java

public static TagValueSuggest of(final List<String> values, final boolean limited) {
    return new TagValueSuggest(ImmutableList.of(), values, limited);
}

From source file:org.glowroot.central.util.Messages.java

public static <T extends /*@NonNull*/ AbstractMessage> List<T> parseDelimitedFrom(@Nullable ByteBuffer byteBuf,
        Parser<T> parser) throws IOException {
    if (byteBuf == null) {
        return ImmutableList.of();
    }/* w w w.j  a  v  a  2s. c  o m*/
    SizeLimitBypassingParser<T> sizeLimitBypassingParser = new SizeLimitBypassingParser<>(parser);
    List<T> messages = new ArrayList<>();
    try (InputStream input = new ByteBufferInputStream(byteBuf)) {
        T message;
        while ((message = sizeLimitBypassingParser.parseDelimitedFrom(input)) != null) {
            messages.add(message);
        }
    }
    return messages;
}

From source file:io.v.baku.toolkit.bind.IdListAccumulator.java

public IdListAccumulator() {
    this(ImmutableList.of());
}