Example usage for org.apache.commons.collections CollectionUtils unmodifiableCollection

List of usage examples for org.apache.commons.collections CollectionUtils unmodifiableCollection

Introduction

In this page you can find the example usage for org.apache.commons.collections CollectionUtils unmodifiableCollection.

Prototype

public static Collection unmodifiableCollection(Collection collection) 

Source Link

Document

Returns an unmodifiable collection backed by the given collection.

Usage

From source file:com.voxeo.moho.remote.impl.CallImpl.java

@Override
public Iterator<String> getHeaderNames() {
    return CollectionUtils.unmodifiableCollection(_headers.values()).iterator();
}

From source file:org.opensingular.flow.core.ProcessDefinition.java

@Nonnull
final Collection<ProcessScheduledJob> getScheduledJobs() {
    return CollectionUtils.unmodifiableCollection(scheduledJobsByName.values());
}

From source file:org.wso2.carbon.identity.provider.common.model.JITProvisioningConfig.java

public Collection<String> getProvisioningIdPs() {
    return CollectionUtils.unmodifiableCollection(provisioningIdPs);
}

From source file:org.wso2.carbon.identity.provider.common.model.ProvisioningConfig.java

public Collection<ProvisionerConfig> getProvisioners() {
    return CollectionUtils.unmodifiableCollection(provisioners);
}

From source file:scratch.joshua.jung_2_0.core.SimpleAbstractSparseGraph.java

public Collection<V> getIncidentVertices(E edge) {
    Pair<V> endpoints = this.getEndpoints(edge);
    Collection incident = new ArrayList();
    incident.add(endpoints.getFirst());/*from  w w  w .jav a  2s  .  c  om*/
    incident.add(endpoints.getSecond());

    return CollectionUtils.unmodifiableCollection(incident);
}

From source file:scratch.joshua.jung_2_0.core.SimpleDirectedSparseGraph.java

public Collection getEdges() {
    return CollectionUtils.unmodifiableCollection(edges.keySet());
}

From source file:scratch.joshua.jung_2_0.core.SimpleDirectedSparseGraph.java

public Collection getVertices() {
    return CollectionUtils.unmodifiableCollection(vertices.keySet());
}

From source file:scratch.joshua.jung_2_0.core.SimpleDirectedSparseGraph.java

public Collection<E> getInEdges(V vertex) {
    return CollectionUtils.unmodifiableCollection(vertices.get(vertex).getFirst());
}

From source file:scratch.joshua.jung_2_0.core.SimpleDirectedSparseGraph.java

public Collection<E> getOutEdges(V vertex) {
    return CollectionUtils.unmodifiableCollection(vertices.get(vertex).getSecond());
}

From source file:scratch.joshua.jung_2_0.core.SimpleDirectedSparseGraph.java

public Collection<V> getPredecessors(V vertex) {
    Set<E> incoming = vertices.get(vertex).getFirst();
    Set<V> preds = new HashSet();
    for (E edge : incoming)
        preds.add(this.getSource(edge));

    return CollectionUtils.unmodifiableCollection(preds);
}