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:libra.preprocess.common.kmerindex.KmerIndexIndex.java

@JsonProperty("last_keys")
public Collection<String> getSortedLastKeys() {
    Collections.sort(this.lastKeyList);
    return Collections.unmodifiableCollection(this.lastKeyList);
}

From source file:com.ponysdk.ui.server.basic.PCheckBox.java

@Override
public Collection<PValueChangeHandler<Boolean>> getValueChangeHandlers() {
    return Collections.unmodifiableCollection(handlers);
}

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

@Override
public Collection<V> getSuccessors(V vertex) {
    if (!containsVertex(vertex))
        return null;

    Set<V> succs = new LinkedHashSet<V>();
    for (E edge : getOutgoing_internal(vertex)) {
        if (getEdgeType(edge) == EdgeType.DIRECTED) {
            succs.add(this.getDest(edge));
        } else {//from  w w  w.  j a v a  2  s.c om
            succs.add(getOpposite(vertex, edge));
        }
    }
    return Collections.unmodifiableCollection(succs);
}

From source file:com.opengamma.analytics.financial.greeks.GreekResultCollection.java

/**
 * @return All values of the greeks in this collection
 *//*from w  w w.j  a  va2s .co m*/
public Collection<Double> values() {
    return Collections.unmodifiableCollection(_backingMap.values());
}

From source file:com.milaboratory.core.sequence.Alphabets.java

/**
 * Returns unmodifiable collection of all registered alphabets.
 *
 * @return unmodifiable collection of all registered alphabets
 *//*from w  w  w .j a  va  2 s  . co m*/
public static Collection<Alphabet> getAll() {
    return Collections.unmodifiableCollection(alphabetsByName.values());
}

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

@Override
public Collection<V> getNeighbors(V vertex) {
    if (!containsVertex(vertex))
        return null;
    Collection<V> neighbors = new LinkedHashSet<V>();
    for (E edge : getIncoming_internal(vertex))
        neighbors.add(this.getSource(edge));
    for (E edge : getOutgoing_internal(vertex))
        neighbors.add(this.getDest(edge));
    return Collections.unmodifiableCollection(neighbors);
}

From source file:org.shredzone.cilla.web.header.DocumentHeader.java

/**
 * Returns all {@link HeadTag} that have been added. The tags are returned in the
 * sequence they have been added. {@link MetaTag} are not included.
 *//* ww w.jav a2  s.co  m*/
public Collection<HeadTag> getHeadTags() {
    return Collections.unmodifiableCollection(headTags);
}

From source file:com.baosight.buapx.ticketregistry.DefaultTicketRegistry.java

public Collection<Ticket> getTickets() {
    return Collections.unmodifiableCollection(this.cache.values());
}

From source file:edu.ksu.cis.indus.staticanalyses.callgraphs.CallInfo.java

/**
 * @see CallGraphInfo.ICallInfo#getReachableMethods()
 *///from  w ww. j av  a  2  s  .c om
public Collection<SootMethod> getReachableMethods() {
    return Collections.unmodifiableCollection(reachables);
}

From source file:org.springframework.hateoas.Resources.java

/**
 * Returns the underlying elements.//from w w  w  .  ja va  2  s  . c om
 * 
 * @return the content will never be {@literal null}.
 */
@XmlAnyElement
@XmlElementWrapper
@JsonProperty("content")
public Collection<T> getContent() {
    return Collections.unmodifiableCollection(content);
}