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.haulmont.cuba.desktop.gui.components.DesktopAbstractField.java

@Override
public Collection<Validator> getValidators() {
    return Collections.unmodifiableCollection(validators);
}

From source file:com.github.mrstampy.gameboot.usersession.ActiveSessions.java

/**
 * Gets the session ids./*from w ww .j av a  2  s. c  om*/
 *
 * @return the session ids
 */
public Collection<Long> getSessionIds() {
    return Collections.unmodifiableCollection(sessions.values());
}

From source file:com.phoenixst.plexus.util.UnmodifiableGraph.java

public Collection nodes(Predicate nodePredicate) {
    return Collections.unmodifiableCollection(delegate.nodes(nodePredicate));
}

From source file:com.netflix.simianarmy.conformity.Cluster.java

/**
 * * Gets the auto scaling groups of the auto scaling group.
 * @return/*from  w  w w  . j a v  a2  s. c  o m*/
 *    the auto scaling groups in the cluster
 */
public Collection<AutoScalingGroup> getAutoScalingGroups() {
    return Collections.unmodifiableCollection(autoScalingGroups);
}

From source file:com.autentia.poda.FilesCollection.java

public Collection<FileMetadata> getAll() {
    return Collections.unmodifiableCollection(filesByPath.values());
}

From source file:lt.emasina.resthub.server.factory.MetadataFactory.java

public Collection<ServerTable> getBlacklist() {
    return Collections.unmodifiableCollection(tables.blacklist.values());
}

From source file:edu.uci.ics.jung.graph.DirectedSparseGraph.java

public Collection<V> getPredecessors(V vertex) {
    if (!containsVertex(vertex))
        return null;
    return Collections.unmodifiableCollection(getPreds_internal(vertex));
}

From source file:eu.uqasar.web.pages.admin.settings.panels.LdapEntityListPanel.java

public Collection<Entity> getCurrentlySelectedEntities() {
    return Collections.unmodifiableCollection(checkGroup.getModelObject());
}

From source file:com.phoenixst.plexus.util.UnmodifiableGraph.java

public Collection edges(Predicate edgePredicate) {
    return Collections.unmodifiableCollection(delegate.edges(edgePredicate));
}

From source file:com.haulmont.cuba.desktop.gui.components.DesktopAbstractActionsHolderComponent.java

@Override
public Collection<Action> getActions() {
    return Collections.unmodifiableCollection(actionList);
}