Example usage for java.util Collections unmodifiableSortedSet

List of usage examples for java.util Collections unmodifiableSortedSet

Introduction

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

Prototype

public static <T> SortedSet<T> unmodifiableSortedSet(SortedSet<T> s) 

Source Link

Document

Returns an unmodifiable view of the specified sorted set.

Usage

From source file:net.sf.jabref.logic.journals.JournalAbbreviationRepository.java

public SortedSet<Abbreviation> getAbbreviations() {
    return Collections.unmodifiableSortedSet(abbreviations);
}

From source file:ru.runa.af.web.system.TaskHandlerClassesInformation.java

public static SortedSet<String> getClassNames() {
    return Collections.unmodifiableSortedSet(taskHandlerImplementationClasses);
}

From source file:com.alvermont.terraj.planet.project.ProjectionManager.java

/**
 * Get a set containing all the projections we know about, sorted into
 * alphabetical order/*  w  w  w.j a  va 2 s. c om*/
 *
 * @return A sorted set of the projections this object is managing
 */
public synchronized SortedSet<Projector> getProjections() {
    return Collections.unmodifiableSortedSet(this.projections);
}

From source file:org.lockss.plugin.AuSearchSet.java

/** Return the collection of AUs, sorted in title order */
public Collection<ArchivalUnit> getSortedAus() {
    synchronized (this) {
        if (sorted == null) {
            SortedSet<ArchivalUnit> res = new TreeSet<ArchivalUnit>(new AuOrderComparator());
            res.addAll(aus);//from   www  .j  a  v  a  2s .co  m
            sorted = Collections.unmodifiableSortedSet(res);
        }
        return sorted;
    }
}

From source file:de.uniba.wiai.kinf.pw.projects.lillytab.reasoner.abox.ABoxNode.java

@Override
public SortedSet<N> getNames() {
    return Collections.unmodifiableSortedSet(_names);
}

From source file:ca.tnt.ldaputils.impl.LdapGroup.java

/**
 * Retrieves a list of business categories for this group.
 *
 * @return a SortedSet of category names
 *///from  ww  w  . j  av a  2 s  . c  om
@Override
public SortedSet<String> getBusinessCategories() {
    return Collections.unmodifiableSortedSet(businessCategories);
}

From source file:gov.nih.nci.caarray.domain.project.Project.java

/**
 * Gets the user visible files from the given set.
 * Only files with no parent are user visible.
 * @param fileSet A set of files//from  w  w w . j av a2 s . c  o  m
 * @return A set of user visible files
 */
private SortedSet<CaArrayFile> filterForUserVisibleFiles(SortedSet<CaArrayFile> fileSet) {
    return Collections
            .unmodifiableSortedSet(Sets.newTreeSet(Iterables.filter(fileSet, new Predicate<CaArrayFile>() {
                public boolean apply(CaArrayFile file) {
                    return file.getParent() == null;
                }
            })));
}

From source file:org.sleuthkit.autopsy.coreutils.ImageUtils.java

public static SortedSet<String> getSupportedImageMimeTypes() {
    return Collections.unmodifiableSortedSet(SUPPORTED_IMAGE_MIME_TYPES);
}

From source file:com.opengamma.financial.analytics.ircurve.InterpolatedYieldCurveSpecification.java

/**
 * @return the strips
 */
public SortedSet<FixedIncomeStripWithIdentifier> getStrips() {
    return Collections.unmodifiableSortedSet(_strips);
}

From source file:net.algart.simagis.live.json.minimal.SimagisLiveUtils.java

public static Set<String> getKeySet(JSONObject jsonObject) {
    if (jsonObject == null) {
        return Collections.emptySet();
    }/*from w  w w. j  av a2  s .  co m*/
    final TreeSet<String> result = new TreeSet<String>();
    final Iterator keys = jsonObject.keys();
    while (keys.hasNext()) {
        result.add((String) keys.next());
    }
    return Collections.unmodifiableSortedSet(result);
}