Example usage for java.util Collections unmodifiableSet

List of usage examples for java.util Collections unmodifiableSet

Introduction

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

Prototype

public static <T> Set<T> unmodifiableSet(Set<? extends T> s) 

Source Link

Document

Returns an unmodifiable view of the specified set.

Usage

From source file:com.bigdata.dastor.dht.Range.java

public static Set<Range> rangeSet(Range... ranges) {
    return Collections.unmodifiableSet(new HashSet<Range>(Arrays.asList(ranges)));
}

From source file:com.titankingdoms.dev.titanchat.core.participant.Participant.java

public Set<EndPoint> getBasePoints() {
    return Collections.unmodifiableSet(basePoint);
}

From source file:com.anrisoftware.simplerest.oanda.core.DefaultInstrumentsFilter.java

@Override
public Set<String> getNames() {
    return Collections.unmodifiableSet(names);
}

From source file:nl.surfnet.mujina.spring.User.java

public User(String name, String authenticationResponseIssuingEntityName,
        String authenticationAssertionIssuingEntityName, String authenticationResponseID,
        String authenticationAssertionID, DateTime authenticationResponseIssueInstant,
        DateTime authenticationAssertionIssueInstant, DateTime authenticationIssueInstant,
        Collection<? extends GrantedAuthority> authorities) {
    super();//from   w  w  w  . jav a 2  s  .c o m
    this.name = name;
    this.authenticationResponseIssuingEntityName = authenticationResponseIssuingEntityName;
    this.authenticationAssertionIssuingEntityName = authenticationAssertionIssuingEntityName;
    this.authenticationResponseID = authenticationResponseID;
    this.authenticationAssertionID = authenticationAssertionID;
    this.authenticationResponseIssueInstant = authenticationResponseIssueInstant;
    this.authenticationAssertionIssueInstant = authenticationAssertionIssueInstant;
    this.authenticationIssueInstant = authenticationIssueInstant;
    this.authorities = Collections.unmodifiableSet(sortAuthorities(authorities));
}

From source file:net.camelpe.extension.camel.typeconverter.CdiTypeConverterBuilder.java

public Set<TypeConverterHolder> buildTypeConvertersFrom(final Class<?> type) {
    this.log.debug("Building TypeConverters from class [{}] ...", type.getName());
    final Set<TypeConverterHolder> answer = new HashSet<TypeConverterHolder>();
    buildTypeConvertersFromClassHierarchy(type, answer);
    this.log.debug("Built [{}] TypeConverter(s) from class [{}]", answer.size(), type.getName());

    return Collections.unmodifiableSet(answer);
}

From source file:com.aionemu.commons.scripting.impl.javacompiler.ScriptClassLoaderImpl.java

/**
 * {@inheritDoc}/*from w  w  w . j a va2 s.  co m*/
 */
@Override
public Set<String> getCompiledClasses() {
    Set<String> compiledClasses = classFileManager.getCompiledClasses().keySet();
    return Collections.unmodifiableSet(compiledClasses);
}

From source file:azkaban.flow.ImmutableFlowManager.java

@Override
public Set<String> getRootFlowNames() {
    return Collections.unmodifiableSet(rootFlowNames);
}

From source file:epgtools.dumpepgfromts.dataextractor.AbstractDataExtractor.java

/**
 * <br>//from  w w  w . j  ava2s  . c  o m
 * ??ID???<br>
 *
 * @param tableId ????ID
 * @param tablsIds ????ID
 * @throws IllegalArgumentException<br>
 * 1:???
 */
protected AbstractDataExtractor(TABLE_ID tableId, TABLE_ID... tablsIds) throws IllegalArgumentException {

    Set<TABLE_ID> tidset = Collections.synchronizedSet(new HashSet<>());
    if (tableId == null) {
        throw new IllegalArgumentException("ID?????");
    }
    tidset.add(tableId);

    int l = tablsIds.length;
    for (int x = 0; x < l; x++) {
        TABLE_ID y = tablsIds[x];
        if (y != null) {
            tidset.add(y);
        } else {
            LOG.error(
                    "ID??null???????null?????");
        }
    }
    this.tableIds = Collections.unmodifiableSet(tidset);

}

From source file:org.web4thejob.web.panel.DefaultDesktopLayoutPanel.java

@Override
public Set<CommandEnum> getSupportedCommands() {
    Set<CommandEnum> supported = new HashSet<CommandEnum>(super.getSupportedCommands());
    supported.add(CommandEnum.USER_DROPDOWN);
    supported.add(CommandEnum.TOOLS_DROPDOWN);
    return Collections.unmodifiableSet(supported);
}

From source file:com.edmunds.etm.loadbalancer.api.VirtualServer.java

public Set<PoolMember> getPoolMembers() {
    return Collections.unmodifiableSet(poolMembers);
}