Example usage for java.util Collections unmodifiableList

List of usage examples for java.util Collections unmodifiableList

Introduction

In this page you can find the example usage for java.util Collections unmodifiableList.

Prototype

public static <T> List<T> unmodifiableList(List<? extends T> list) 

Source Link

Document

Returns an unmodifiable view of the specified list.

Usage

From source file:cf.nats.message.RouterStart.java

@JsonCreator
public RouterStart(@JsonProperty("id") String id, @JsonProperty("version") String version,
        @JsonProperty("hosts") List<String> hosts,
        @JsonProperty("minimumRegisterIntervalInSeconds") Long minimumRegisterIntervalInSeconds) {
    this.id = id;
    this.version = version;
    this.hosts = hosts == null ? null : Collections.unmodifiableList(hosts);
    this.minimumRegisterIntervalInSeconds = minimumRegisterIntervalInSeconds;
}

From source file:au.id.hazelwood.xmltvguidebuilder.model.ChannelListings.java

public List<ChannelDetail> getChannels() {
    return Collections.unmodifiableList(new ArrayList<>(channelById.values()));
}

From source file:org.shredzone.cilla.web.plugin.manager.LinkResolverManager.java

@PostConstruct
protected void setup() {
    linkTypeMatchers = Collections.unmodifiableList(applicationContext.getBeansOfType(LinkTypeMatcher.class)
            .values().stream().sorted(new PriorityComparator<>(LinkTypeMatcher.class)).collect(toList()));

    localLinkResolvers = Collections.unmodifiableList(applicationContext.getBeansOfType(LocalLinkResolver.class)
            .values().stream().sorted(new PriorityComparator<>(LocalLinkResolver.class)).collect(toList()));
}

From source file:net.daboross.bukkitdev.skywars.api.events.GameStartEvent.java

public GameStartEvent(SkyWars plugin, SkyGame newGame, List<Player> players) {
    Validate.notNull(plugin, "Plugin cannot be null");
    Validate.notNull(newGame, "Game cannot be null");
    Validate.noNullElements(players, "No players can be null");
    this.plugin = plugin;
    this.newGame = newGame;
    this.players = Collections.unmodifiableList(players);
}

From source file:org.excalibur.service.deployment.server.ApplicationConfig.java

/**
 * Register JAX-RS application components.
 */// w  ww.  j  a  v a2s .  c  o  m
public ApplicationConfig() {
    Reflections reflections = new Reflections("org.excalibur");
    RESOURCES = Collections
            .unmodifiableList(new ArrayList<Class<?>>(reflections.getTypesAnnotatedWith(Path.class)));

    register(RequestContextFilter.class);
    registerResources(RESOURCES);
    registerResources(reflections.getTypesAnnotatedWith(Provider.class));

}

From source file:com.arpnetworking.tsdcore.sinks.circonus.api.BrokerListResponse.java

public List<Broker> getBrokers() {
    return Collections.unmodifiableList(_brokers);
}

From source file:net.sf.gazpachoquest.domain.core.SectionBreadcrumb.java

public List<QuestionBreadcrumb> getBreadcrumbs() {
    return Collections.unmodifiableList(breadcrumbs);
}

From source file:com.streamreduce.core.model.dto.BaseOutboundConfigurationDTO.java

public BaseOutboundConfigurationDTO(OutboundConfiguration outboundConfiguration) {
    if (outboundConfiguration == null) {
        throw new IllegalArgumentException("outboundConfiguration can't be null");
    }//from w ww  . ja  v a  2 s. c o m
    this.destination = outboundConfiguration.getDestination();
    this.protocol = outboundConfiguration.getProtocol();
    this.namespace = outboundConfiguration.getNamespace();
    this.dataTypes = Collections.unmodifiableList(Lists.newArrayList(outboundConfiguration.getDataTypes()));
}

From source file:com.thoughtworks.studios.journey.models.RepeatedAction.java

public List<Pattern> getPatterns() {
    return Collections.unmodifiableList(this.patterns);
}

From source file:net.javacrumbs.springws.test.MockWebServiceMessageSender.java

/**
 * Response generators used to generate the response.
 *///from  w ww .j a va2s  .c o m
public List<RequestProcessor> getRequestProcessors() {
    return Collections.unmodifiableList(requestProcessors);
}