List of usage examples for java.util Collections unmodifiableCollection
public static <T> Collection<T> unmodifiableCollection(Collection<? extends T> c)
From source file:libra.preprocess.common.kmerindex.KmerIndexIndex.java
@JsonIgnore public Collection<String> getLastKey() { return Collections.unmodifiableCollection(this.lastKeyList); }
From source file:com.opengamma.engine.view.compilation.CompiledViewDefinitionImpl.java
@Override public Collection<CompiledViewCalculationConfiguration> getCompiledCalculationConfigurations() { return Collections.unmodifiableCollection(_compiledCalculationConfigurations.values()); }
From source file:com.smartitengineering.cms.client.impl.ContentsResourceImpl.java
@Override public Collection<ContainerResource> getContainer() { final List<ResourceLink> container = getRelatedResourceUris().get(Link.REL_SELF); if (container == null || container.isEmpty()) { return Collections.emptyList(); }//from ww w.j a v a2 s. c om List<ContainerResource> resource = new ArrayList<ContainerResource>(container.size()); for (ResourceLink link : container) { resource.add(new ContainerResourceImpl(this, link)); } return Collections.unmodifiableCollection(resource); }
From source file:net.sf.commons.ssh.directory.Directory.java
/** * Returns read-only list of {@link Description}s * * @return read-only list of {@link Description}s *//*from w w w . j av a 2s .c o m*/ public Collection<Description> getDescriptions() { return Collections.unmodifiableCollection(descriptions.values()); }
From source file:libra.common.kmermatch.KmerMatchFileMapping.java
@JsonProperty("fasta_files") public Collection<String> getFastaFiles() { return Collections.unmodifiableCollection(this.objList); }
From source file:hudson.plugins.clearcase.ucm.model.ActivitiesDelta.java
/** * @return an unmodifiable collection of activities present on right side. *///www . j a v a2 s. co m public Collection<Activity> getRight() { return Collections.unmodifiableCollection(right); }
From source file:com.eatnumber1.util.cglib.EnhancerUtils.java
@NotNull public static <T, D extends T> T synchronize(@NotNull ConstructorDescriptor<T> descriptor, @NotNull D delegate, @NotNull Lock lock) {/*from w w w . j a va 2 s . c o m*/ Enhancer enhancer = getEnhancer(descriptor.getType(), LockProvider.class, Facade.class); enhancer.setCallbackFilter(new CallbackFilter() { private Collection<Method> INTERCEPTED_METHODS = Collections.unmodifiableCollection( new CompositeCollection<Method>(Arrays.asList(LockProvider.class.getMethods()), Arrays.asList(Facade.class.getMethods()))); @Override public int accept(Method method) { return INTERCEPTED_METHODS.contains(method) ? 1 : 0; } }); final SynchronizedMethodInterceptor interceptor = new SynchronizedMethodInterceptor<D>(delegate, lock); enhancer.setCallbacks(new Callback[] { interceptor, new MethodInterceptor() { @Override public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable { return method.invoke(interceptor, objects); } } }); //noinspection unchecked return (T) enhancer.create(descriptor.getArgumentTypes(), descriptor.getArguments()); }
From source file:com.netflix.simianarmy.conformity.ConformityRuleEngine.java
/** * Gets all conformity rules in the rule engine. * @return all conformity rules in the rule engine *///from w ww.j a va 2s.c o m public Collection<ConformityRule> rules() { return Collections.unmodifiableCollection(rules); }
From source file:com.haulmont.cuba.gui.data.impl.AbstractTreeDatasource.java
@Override public Collection<K> getRootItemIds() { if (state == State.NOT_INITIALIZED) { return Collections.emptyList(); } else {//from ww w .j a v a 2 s .c o m if (tree == null) { return Collections.emptyList(); } List ids = new ArrayList(); for (Node<T> rootNode : tree.getRootNodes()) { ids.add(rootNode.getData().getId()); } return (Collection<K>) Collections.unmodifiableCollection(ids); } }
From source file:de.dhke.projects.cutil.collections.WeightedSet.java
@Override public Collection<Double> values() { return Collections.unmodifiableCollection(_backend.values()); }