List of usage examples for java.util Collections unmodifiableList
public static <T> List<T> unmodifiableList(List<? extends T> list)
From source file:net.dv8tion.jda.player.Playlist.java
public List<AudioSource> getSources() { return Collections.unmodifiableList(sources); }
From source file:de.hasait.genesis.base.model.AbstractJTypedElement.java
@Nonnull public List<JAnnotation> getAnnotations() { return Collections.unmodifiableList(_annotations); }
From source file:com.trenako.security.AccountDetails.java
@Override public Collection<? extends GrantedAuthority> getAuthorities() { List<String> l = account.getRoles(); String[] roles = l == null ? new String[] { "ROLE_USER" } : l.toArray(new String[l.size()]); return Collections.unmodifiableList(AuthorityUtils.createAuthorityList(roles)); }
From source file:com.kelveden.rastajax.representation.flat.FlatResourceMethod.java
FlatResourceMethod(final String name, final String requestMethodDesignator, final Map<String, List<FlatResourceMethodParameter>> parametersByType, final List<String> consumes, final List<String> produces, final String resourceClass) { this.name = name; this.requestMethodDesignator = requestMethodDesignator; this.parametersByType = Collections.unmodifiableMap(parametersByType); this.produces = Collections.unmodifiableList(produces); this.consumes = Collections.unmodifiableList(consumes); this.resourceClass = resourceClass; }
From source file:nl.mawoo.wcmmanager.services.ExecutionResult.java
public List<LogMessage> getLogging() { return Collections.unmodifiableList(logging); }
From source file:com.redhat.rhn.frontend.nav.NavTree.java
/** * Gets the top-level nodes associated with the tree * @return List of the nodes/*from w w w . j a va 2 s .co m*/ */ public List<NavNode> getNodes() { return Collections.unmodifiableList(nodes); }
From source file:com.frank.search.solr.core.query.SimpleTermsQuery.java
@Override public List<Field> getTermsFields() { return Collections.unmodifiableList(this.fields); }
From source file:com.jklas.sample.petclinic.Owner.java
public List getPets() { List sortedPets = new ArrayList(getPetsInternal()); PropertyComparator.sort(sortedPets, new MutableSortDefinition("name", true, true)); return Collections.unmodifiableList(sortedPets); }
From source file:org.gvnix.addon.datatables.addon.QueryHolderTokens.java
public QueryHolderTokens(final String jpaQuery, final List<JavaType> parameterTypes, final List<JavaSymbolName> parameterNames, final List<Token> tokens) { this.jpaQuery = jpaQuery; this.parameterTypes = Collections.unmodifiableList(parameterTypes); this.parameterNames = Collections.unmodifiableList(parameterNames); this.tokens = Collections.unmodifiableList(tokens); }
From source file:org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol.MessageFrame.java
public List<String> messages() { return Collections.unmodifiableList(messages); }