List of usage examples for java.util Collections unmodifiableSet
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
From source file:com.haulmont.cuba.restapi.CommitRequest.java
public Set<String> getNewInstanceIds() { return Collections.unmodifiableSet(newInstanceIds); }
From source file:io.netlibs.bgp.config.nodes.impl.CapabilitiesImpl.java
@Override public Set<Capability> getRequiredCapabilities() { return Collections.unmodifiableSet(this.requiredCapabilities); }
From source file:com.arpnetworking.clusteraggregator.models.ShardAllocation.java
@JsonSerialize(using = CountingSetSerializer.class) public Set<String> getOutgoingShards() { return Collections.unmodifiableSet(_outgoingShards); }
From source file:com.linecorp.armeria.server.docs.EndpointInfo.java
EndpointInfo(String hostnamePattern, String path, SerializationFormat defaultFormat, Set<SerializationFormat> availableFormats) { this.hostnamePattern = requireNonNull(hostnamePattern, "hostnamePattern"); this.path = requireNonNull(path, "path"); defaultMimeType = requireNonNull(defaultFormat, "defaultFormat").mimeType(); final Set<String> sortedAvailableMimeTypes = availableFormats.stream().map(SerializationFormat::mimeType) .collect(Collectors.toCollection(TreeSet::new)); availableMimeTypes = Collections.unmodifiableSet(sortedAvailableMimeTypes); }
From source file:hr.fer.zemris.vhdllab.service.workspace.ProjectMetadata.java
public Set<File> getFiles() { return Collections.unmodifiableSet(files); }
From source file:net.sourceforge.fenixedu.domain.candidacyProcess.erasmus.TypeOfProgrammeList.java
public Set<TypeOfProgramme> getTypes() { return Collections.unmodifiableSet(types); }
From source file:org.shredzone.cilla.ws.impl.LoginWsImpl.java
@Override public GrantedRoleDto authenticate() { CillaUserDetails cud = securityService.getAuthenticatedUser(); GrantedRoleDto dto = new GrantedRoleDto(); dto.setName(cud.getRole());// w w w .j av a 2s . c om dto.setRights(Collections.unmodifiableSet( cud.getAuthorities().stream().map(GrantedAuthority::getAuthority).collect(toSet()))); return dto; }
From source file:net.krotscheck.stk.filterColumn.FilterColumnBolt.java
/** * Retrieve the set of requested columns. * * @return An unmodifiable set of requested column names. *//*from ww w.ja va 2 s .c om*/ public Set<String> getRequestedColumns() { return Collections.unmodifiableSet(requestedColumns); }
From source file:net.sourceforge.fenixedu.domain.candidacyProcess.erasmus.StorkAttributesList.java
public Set<StorkAttributeType> getTypes() { return Collections.unmodifiableSet(types); }
From source file:org.duracloud.account.db.util.impl.DuracloudGroupServiceImpl.java
@Override public Set<DuracloudGroup> getGroups(Long acctId) { List<DuracloudGroup> listGroups = repoMgr.getGroupRepo().findByAccountId(acctId); Set<DuracloudGroup> groups = new HashSet<DuracloudGroup>(); groups.addAll(listGroups);/*from w ww. ja v a 2 s . c o m*/ return Collections.unmodifiableSet(groups); }