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:ru.jts_dev.gameserver.parser.impl.SettingsHolder.java

public final List<CharacterStat> getMaximumStats() {
    return Collections.unmodifiableList(maximumStats);
}

From source file:com.haulmont.timesheets.global.WorkTimeConfigBean.java

public List<DayOfWeek> getWeekends() {
    List<DayOfWeek> days = new ArrayList<>(Arrays.asList(DayOfWeek.values()));
    for (DayOfWeek day : getWorkDays()) {
        days.remove(day);//w w  w.  ja v  a  2 s.c  o m
    }
    return Collections.unmodifiableList(days);
}

From source file:com.datasalt.pangool.solr.SolrRecordWriter.java

/**
 * Return the list of directories names that may be included in the configuration data passed to the tasks.
 * //from   w  w  w. java2  s.  com
 * @return an UnmodifiableList of directory names
 */
public static List<String> getAllowedConfigDirectories() {
    return Collections.unmodifiableList(allowedConfigDirectories);
}

From source file:com.frank.search.solr.core.query.PartialUpdate.java

@Override
public List<UpdateField> getUpdates() {
    return Collections.unmodifiableList(updates);
}

From source file:net.logstash.logback.composite.JsonProviders.java

public List<JsonProvider<Event>> getProviders() {
    return Collections.unmodifiableList(jsonProviders);
}

From source file:com.redhat.rhn.frontend.nav.NavNode.java

/**
 * Get URLs associated with this node
 * @return List the associated URLs
 */
public List<String> getURLs() {
    return Collections.unmodifiableList(urls);
}

From source file:gemfire.practice.service.DefautOrderService.java

/**
 * Find all orders// w w w  .  ja  v a  2s  .c o m
 * 
 * @return
 */
@Override
public List<Order> findAllOrders() {
    List<Order> orders = new ArrayList<Order>();
    for (Order order : orderRepository.findAll()) {
        orders.add(order);
    }
    return Collections.unmodifiableList(orders);
}

From source file:com.gargoylesoftware.htmlunit.WebResponseData.java

/**
 * Constructor.//from  w ww.j ava 2 s.  co m
 * @param downloadedContent the downloaded content
 * @param statusCode        Status code from the server
 * @param statusMessage     Status message from the server
 * @param responseHeaders   Headers in this response
 */
public WebResponseData(final DownloadedContent downloadedContent, final int statusCode,
        final String statusMessage, final List<NameValuePair> responseHeaders) {
    statusCode_ = statusCode;
    statusMessage_ = statusMessage;
    responseHeaders_ = Collections.unmodifiableList(responseHeaders);
    downloadedContent_ = downloadedContent;
}

From source file:de.decoit.simu.cbor.ifmap.response.model.search.SearchResult.java

/**
 * Returns an immutable view of the result items list.
 *
 * @return Immutable list view/*from  w  w  w. java2 s  .c  om*/
 */
public List<SearchResultItem> getResultItems() {
    return Collections.unmodifiableList(this.resultItems);
}

From source file:net.sf.jabref.model.entry.CustomEntryType.java

@Override
public List<String> getSecondaryOptionalFields() {
    List<String> result = new ArrayList<>(optional);
    result.removeAll(primaryOptional);/*from   w w w .  j av  a 2s.c om*/
    return Collections.unmodifiableList(result);
}