Codota Logo
TransformedList.decorate
Code IndexAdd Codota to your IDE (free)

How to use
decorate
method
in
org.apache.commons.collections.list.TransformedList

Best Java code snippets using org.apache.commons.collections.list.TransformedList.decorate (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: commons-collections/commons-collections

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}

origin: wildfly/wildfly

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}

origin: commons-collections/commons-collections

public List makeEmptyList() {
  return TransformedList.decorate(new ArrayList(), TestTransformedCollection.NOOP_TRANSFORMER);
}
origin: commons-collections/commons-collections

public List makeFullList() {
  List list = new ArrayList();
  list.addAll(Arrays.asList(getFullElements()));
  return TransformedList.decorate(list, TestTransformedCollection.NOOP_TRANSFORMER);
}

origin: commons-collections/commons-collections

public void testTransformedList() {
  List list = TransformedList.decorate(new ArrayList(), TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER);
  assertEquals(0, list.size());
  Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"};
origin: com.github.becauseQA/becauseQA-utils

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}

origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}
 
origin: com.github.becausetesting/commons

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}
 
origin: org.apache.openjpa/openjpa-all

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}

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

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}
 
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Returns a transformed list backed by the given list.
 * <p>
 * Each object is passed through the transformer as it is added to the
 * List. It is important not to use the original list after invoking this 
 * method, as it is a backdoor for adding untransformed objects.
 *
 * @param list  the list to predicate, must not be null
 * @param transformer  the transformer for the list, must not be null
 * @return a transformed list backed by the given list
 * @throws IllegalArgumentException  if the List or Transformer is null
 */
public static List transformedList(List list, Transformer transformer) {
  return TransformedList.decorate(list, transformer);
}

org.apache.commons.collections.listTransformedListdecorate

Javadoc

Factory method to create a transforming list.

If there are any elements already in the list being decorated, they are NOT transformed.

Popular methods of TransformedList

  • <init>
    Constructor that wraps (not copies). If there are any elements already in the list being decorated,
  • getList
    Gets the decorated list.
  • listIterator
  • transform

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • String (java.lang)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ImageIO (javax.imageio)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now