Tabnine Logo
UnmodifiableCollection.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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: 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.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: 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);
}
 
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.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: stackoverflow.com

 public UnmodifiableCollection giveMeSomeUnmodifableCollection() {
  return new UnmodifiableCollection(new LinkedList());
}
org.apache.commons.collections.collectionUnmodifiableCollection<init>

Javadoc

Constructor that wraps (not copies).

Popular methods of UnmodifiableCollection

  • decorate
    Factory method to create an unmodifiable collection. If the collection passed in is already unmodifi
  • getCollection

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Github Copilot alternatives
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