List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:com.welty.ggf.GgfMatch.java
private GgfMatch(List<COsGame> games) { this.games = Collections.unmodifiableList(new ArrayList<>(games)); }
From source file:net.dv8tion.jda.core.utils.cache.impl.SortedSnowflakeCacheView.java
@Override public List<T> asList() { List<T> list = new ArrayList<>(elements.size()); elements.forEachValue(list::add);/*from w w w . j a v a 2 s. c o m*/ list.sort(comparator); return Collections.unmodifiableList(list); }
From source file:org.powertac.wpgenco.WindForecast.java
public List<Double> getAirPressure() { return Collections.unmodifiableList(airPressure); }
From source file:io.dyn.core.fsm.StateMachine.java
public List<String> states() { return Collections.unmodifiableList(this.states); }
From source file:cz.fi.muni.pa036.airticketbooking.dao.impl.FlightTicketPriceDaoImpl.java
@Override public List<FlightTicketPrice> getAll() { try {/*from w w w. j av a 2 s. c om*/ Query q = em.createQuery("FROM FlightTicketPrice"); List<FlightTicketPrice> objectTemp = q.getResultList(); return Collections.unmodifiableList(objectTemp); } catch (PersistenceException | IllegalArgumentException ex) { throw new DataAccessException(ex.getMessage(), ex) { }; } }
From source file:com.widen.valet.importer.ImportBulkZones.java
private void run() { existingZonesCache = Collections.unmodifiableList(driver.listZones()); File root = new File("src/main/java/com/widen/valet/importer/zones"); int processCount = 0; for (File f : root.listFiles()) { log.debug("listing file {}", f); try {/* w w w . j a v a 2s . c om*/ processCount++; processZoneFile(f); if (processCount >= MAX_FILES_TO_PROCESS) { break; } } catch (IOException e) { throw new RuntimeException(e); } } }
From source file:com.jklas.sample.petclinic.Vet.java
public List getSpecialties() { List sortedSpecs = new ArrayList(getSpecialtiesInternal()); PropertyComparator.sort(sortedSpecs, new MutableSortDefinition("name", true, true)); return Collections.unmodifiableList(sortedSpecs); }
From source file:li.klass.fhem.domain.setlist.SetListGroupValue.java
public List<String> getGroupStates() { return Collections.unmodifiableList(groupStates); }
From source file:io.cloudslang.orchestrator.entities.SplitMessage.java
public List<Execution> getChildren() { return Collections.unmodifiableList(children); }
From source file:edu.bu.kuali.kra.award.sapintegration.ValidationError.java
public List<String> getErrorParams() { return Collections.unmodifiableList(errorParams); }