Tabnine Logo
Collections$SynchronizedList.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
java.util.Collections$SynchronizedList
constructor

Best Java code snippets using java.util.Collections$SynchronizedList.<init> (Showing top 20 results out of 315)

origin: robovm/robovm

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: robovm/robovm

/**
 * Returns a wrapper on the specified List which synchronizes all access to
 * the List.
 *
 * @param list
 *            the List to wrap in a synchronized list.
 * @return a synchronized List.
 */
public static <T> List<T> synchronizedList(List<T> list) {
  if (list == null) {
    throw new NullPointerException("list == null");
  }
  if (list instanceof RandomAccess) {
    return new SynchronizedRandomAccessList<T>(list);
  }
  return new SynchronizedList<T>(list);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

  /**
   * Replaces this SynchronizedRandomAccessList with a SynchronizedList so
   * that JREs before 1.4 can deserialize this object without any
   * problems. This is necessary since RandomAccess API was introduced
   * only in 1.4.
   * <p>
   *
   * @return SynchronizedList
   *
   * @see SynchronizedList#readResolve()
   */
  private Object writeReplace() {
    return new SynchronizedList<E>(list);
  }
}
origin: com.jtransc/jtransc-rt

  /**
   * Replaces this SynchronizedRandomAccessList with a SynchronizedList so
   * that JREs before 1.4 can deserialize this object without any
   * problems. This is necessary since RandomAccess API was introduced
   * only in 1.4.
   * <p>
   *
   * @return SynchronizedList
   *
   * @see SynchronizedList#readResolve()
   */
  private Object writeReplace() {
    return new SynchronizedList<E>(list);
  }
}
origin: ibinti/bugvm

  /**
   * Replaces this SynchronizedRandomAccessList with a SynchronizedList so
   * that JREs before 1.4 can deserialize this object without any
   * problems. This is necessary since RandomAccess API was introduced
   * only in 1.4.
   * <p>
   *
   * @return SynchronizedList
   *
   * @see SynchronizedList#readResolve()
   */
  private Object writeReplace() {
    return new SynchronizedList<E>(list);
  }
}
origin: jtulach/bck2brwsr

  /**
   * Allows instances to be deserialized in pre-1.4 JREs (which do
   * not have SynchronizedRandomAccessList).  SynchronizedList has
   * a readResolve method that inverts this transformation upon
   * deserialization.
   */
  private Object writeReplace() {
    return new SynchronizedList<>(list);
  }
}
origin: jtulach/bck2brwsr

static <T> List<T> synchronizedList(List<T> list, Object mutex) {
  return (list instanceof RandomAccess ?
      new SynchronizedRandomAccessList<>(list, mutex) :
      new SynchronizedList<>(list, mutex));
}
origin: MobiVM/robovm

  /**
   * Replaces this SynchronizedRandomAccessList with a SynchronizedList so
   * that JREs before 1.4 can deserialize this object without any
   * problems. This is necessary since RandomAccess API was introduced
   * only in 1.4.
   * <p>
   *
   * @return SynchronizedList
   *
   * @see SynchronizedList#readResolve()
   */
  private Object writeReplace() {
    return new SynchronizedList<E>(list);
  }
}
origin: com.jtransc/jtransc-rt

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: org.apidesign.bck2brwsr/emul

static <T> List<T> synchronizedList(List<T> list, Object mutex) {
  return (list instanceof RandomAccess ?
      new SynchronizedRandomAccessList<>(list, mutex) :
      new SynchronizedList<>(list, mutex));
}
origin: FlexoVM/flexovm

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: jtulach/bck2brwsr

public List<E> subList(int fromIndex, int toIndex) {
  synchronized (mutex) {
    return new SynchronizedList<>(list.subList(fromIndex, toIndex),
                  mutex);
  }
}
origin: ibinti/bugvm

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: com.gluonhq/robovm-rt

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: org.apidesign.bck2brwsr/emul

  /**
   * Allows instances to be deserialized in pre-1.4 JREs (which do
   * not have SynchronizedRandomAccessList).  SynchronizedList has
   * a readResolve method that inverts this transformation upon
   * deserialization.
   */
  private Object writeReplace() {
    return new SynchronizedList<>(list);
  }
}
origin: com.bugvm/bugvm-rt

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: org.apidesign.bck2brwsr/emul

public List<E> subList(int fromIndex, int toIndex) {
  synchronized (mutex) {
    return new SynchronizedList<>(list.subList(fromIndex, toIndex),
                  mutex);
  }
}
origin: MobiVM/robovm

@Override public List<E> subList(int start, int end) {
  synchronized (mutex) {
    return new SynchronizedList<E>(list.subList(start, end), mutex);
  }
}
origin: robovm/robovm

  /**
   * Replaces this SynchronizedRandomAccessList with a SynchronizedList so
   * that JREs before 1.4 can deserialize this object without any
   * problems. This is necessary since RandomAccess API was introduced
   * only in 1.4.
   * <p>
   *
   * @return SynchronizedList
   *
   * @see SynchronizedList#readResolve()
   */
  private Object writeReplace() {
    return new SynchronizedList<E>(list);
  }
}
java.utilCollections$SynchronizedList<init>

Popular methods of Collections$SynchronizedList

    Popular in Java

    • Running tasks concurrently on multiple threads
    • getExternalFilesDir (Context)
    • getContentResolver (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • MalformedURLException (java.net)
      This exception is thrown when a program attempts to create an URL from an incorrect specification.
    • Socket (java.net)
      Provides a client-side TCP socket.
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • Project (org.apache.tools.ant)
      Central representation of an Ant project. This class defines an Ant project with all of its targets,
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Top 17 Free Sublime Text Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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