Tabnine Logo
UnmodifiableCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
UnmodifiableCollection
in
org.apache.commons.collections.collection

Best Java code snippets using org.apache.commons.collections.collection.UnmodifiableCollection (Showing top 20 results out of 315)

origin: commons-collections/commons-collections

/**
 * Returns an unmodifiable collection backed by the given collection.
 * <p>
 * This method uses the implementation in the decorators subpackage.
 *
 * @param collection  the collection to make unmodifiable, must not be null
 * @return an unmodifiable collection backed by the given collection
 * @throws IllegalArgumentException  if the collection is null
 */
public static Collection unmodifiableCollection(Collection collection) {
  return UnmodifiableCollection.decorate(collection);
}
origin: commons-collections/commons-collections

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}

origin: commons-collections/commons-collections

public Iterator iterator() {
  return UnmodifiableIterator.decorate(getCollection().iterator());
}
origin: wildfly/wildfly

/**
 * Returns an unmodifiable collection backed by the given collection.
 * <p>
 * This method uses the implementation in the decorators subpackage.
 *
 * @param collection  the collection to make unmodifiable, must not be null
 * @return an unmodifiable collection backed by the given collection
 * @throws IllegalArgumentException  if the collection is null
 */
public static Collection unmodifiableCollection(Collection collection) {
  return UnmodifiableCollection.decorate(collection);
}
origin: wildfly/wildfly

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}

origin: wildfly/wildfly

public Iterator iterator() {
  return UnmodifiableIterator.decorate(getCollection().iterator());
}
origin: commons-collections/commons-collections

public Collection values() {
  Collection coll = map.values();
  return UnmodifiableCollection.decorate(coll);
}
origin: org.apache.openjpa/openjpa-all

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}

origin: org.apache.directory.api/api-ldap-client-all

public Iterator iterator() {
  return UnmodifiableIterator.decorate(getCollection().iterator());
}
origin: commons-collections/commons-collections

public Collection values() {
  Collection coll = map.values();
  return UnmodifiableCollection.decorate(coll);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

public Iterator iterator() {
  return UnmodifiableIterator.decorate(getCollection().iterator());
}
origin: wildfly/wildfly

public Collection values() {
  Collection coll = map.values();
  return UnmodifiableCollection.decorate(coll);
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}

origin: org.apache.openjpa/openjpa-all

public Iterator iterator() {
  return UnmodifiableIterator.decorate(getCollection().iterator());
}
origin: wildfly/wildfly

public Collection values() {
  Collection coll = map.values();
  return UnmodifiableCollection.decorate(coll);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}

origin: org.jboss.eap/wildfly-client-all

public Iterator iterator() {
  return UnmodifiableIterator.decorate(getCollection().iterator());
}
origin: commons-collections/commons-collections

public Collection values() {
  Collection coll = super.values();
  return UnmodifiableCollection.decorate(coll);
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Factory method to create an unmodifiable collection.
 * <p>
 * If the collection passed in is already unmodifiable, it is returned.
 * 
 * @param coll  the collection to decorate, must not be null
 * @return an unmodifiable collection
 * @throws IllegalArgumentException if collection is null
 */
public static Collection decorate(Collection coll) {
  if (coll instanceof Unmodifiable) {
    return coll;
  }
  return new UnmodifiableCollection(coll);
}
 
org.apache.commons.collections.collectionUnmodifiableCollection

Javadoc

Decorates another Collection to ensure it can't be altered.

This class is Serializable from Commons Collections 3.1.

Most used methods

  • decorate
    Factory method to create an unmodifiable collection. If the collection passed in is already unmodifi
  • <init>
    Constructor that wraps (not copies).
  • getCollection

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JCheckBox (javax.swing)
  • JLabel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now