JArrayList<$E extends JObject?>.new$2 constructor

JArrayList<$E extends JObject?>.new$2(
  1. JCollection<$E?>? collection
)

from: public void <init>(java.util.Collection<? extends E> collection) The returned object must be released after use, by calling the release method.

Implementation

factory JArrayList.new$2(
  JCollection<$E?>? collection,
) {
  final _$$classRef = _class.reference;
  final _$collection = collection?.reference ?? jni$_.jNullReference;
  return _new$2(_$$classRef.pointer, _id_new$2.pointer, _$collection.pointer)
      .object<JArrayList<$E>>();
}