Example usage for java.util Collections unmodifiableCollection

List of usage examples for java.util Collections unmodifiableCollection

Introduction

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

Prototype

public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c) 

Source Link

Document

Returns an unmodifiable view of the specified collection.

Usage

From source file:com.opengamma.language.function.FunctionProviderBean.java

public Collection<PublishedFunction> getFunctions() {
    return Collections.unmodifiableCollection(getFunctionsInternal());
}

From source file:org.openeos.services.security.internal.FixedGrantedAuthorityProvider.java

@Override
public Collection<? extends GrantedAuthority> getAuthorities(User user) {
    return Collections.unmodifiableCollection(fixedAuthorityCollection);
}

From source file:com.autentia.showcase.contacts.AddressBook.java

public Collection<Contact> contacts() {
    return Collections.unmodifiableCollection(contacts.values());
}

From source file:com.github.erchu.beancp.MapperImpl.java

MapperImpl(final Collection<Converter<?, ?>> converters, final List<DeclarativeMapImpl<?, ?>> maps,
        final List<MapConventionExecutor> mapAnyConvention) {
    this._converters = Collections.unmodifiableCollection(converters);
    this._maps = Collections.unmodifiableCollection(maps);
    this._mapAnyConventions = mapAnyConvention;
}

From source file:net.ontopia.topicmaps.impl.basic.index.IdentifierIndex.java

@Override
public Collection<LocatorIF> getItemIdentifiersByPrefix(String prefix) {
    return Collections.unmodifiableCollection(
            CollectionUtils.select(getItemIdentifiers(), new LocatorPrefixedPredicate(prefix)));
}

From source file:io.gravitee.repository.redis.management.internal.impl.UserRedisRepositoryImpl.java

@Override
public Set<RedisUser> find(List<String> users) {
    return redisTemplate.opsForHash().multiGet(REDIS_KEY, Collections.unmodifiableCollection(users)).stream()
            .filter(Objects::nonNull).map(o -> this.convert(o, RedisUser.class)).collect(Collectors.toSet());
}

From source file:com.haulmont.cuba.core.sys.javacl.compiler.ClassLoaderImpl.java

/**
 * @return An collection of JavaFileObject instances for the classes in the
 *         class loader./* ww w . j a v a  2  s  .co m*/
 */
Collection<JavaFileObject> files() {
    return Collections.unmodifiableCollection(classes.values());
}

From source file:com.opengamma.financial.comparison.PositionSetComparison.java

protected PositionSetComparison(final Collection<Pair<Position, Position>> diff,
        final Collection<Position> left, final Collection<Position> right,
        final Collection<Position> intersection) {
    _diff = Collections.unmodifiableCollection(diff);
    _left = Collections.unmodifiableCollection(left);
    _right = Collections.unmodifiableCollection(right);
    _intersection = Collections.unmodifiableCollection(intersection);
}

From source file:hudson.plugins.clearcase.model.Versions.java

public Collection<Version> getVersions() {
    return Collections.unmodifiableCollection(versions);
}

From source file:com.stehno.sanctuary.core.remote.InMemoryRemoteStore.java

public Collection<String> getStoredPaths(File rootDir) {
    return Collections.unmodifiableCollection(stores.get(extractRoot(rootDir)));
}