congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
    • setScale (BigDecimal)
    • requestLocationUpdates (LocationManager)
    • setRequestProperty (URLConnection)
    • PrintWriter (java.io)
      Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
    • Runnable (java.lang)
      Represents a command that can be executed. Often used to run code in a different Thread.
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • AtomicInteger (java.util.concurrent.atomic)
      An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • 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