Java Examples for java.util.LinkedList

The following java examples will help you to understand the usage of java.util.LinkedList. These source code samples are taken from different open source projects.

Example 1
Project: j2objc-master  File: LinkedListTest.java View source code
/**
	 * @tests java.util.LinkedList#add(int, java.lang.Object)
	 */
public void test_addILjava_lang_Object() {
    // Test for method void java.util.LinkedList.add(int, java.lang.Object)
    Object o;
    ll.add(50, o = "Test");
    assertTrue("Failed to add Object>: " + ll.get(50).toString(), ll.get(50) == o);
    assertTrue("Failed to fix up list after insert", ll.get(51) == objArray[50] && (ll.get(52) == objArray[51]));
    ll.add(50, null);
    assertNull("Did not add null correctly", ll.get(50));
    try {
        ll.add(-1, "Test");
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(-1, null);
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(ll.size() + 1, "Test");
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(ll.size() + 1, null);
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
}
Example 2
Project: android_platform_libcore-master  File: LinkedListTest.java View source code
/**
     * java.util.LinkedList#addAll(int, java.util.Collection)
     */
public void test_addAllILjava_util_Collection() {
    // Test for method boolean java.util.LinkedList.addAll(int,
    // java.util.Collection)
    ll.addAll(50, (Collection) ll.clone());
    assertEquals("Returned incorrect size after adding to existing list", 200, ll.size());
    for (int i = 0; i < 50; i++) assertTrue("Manipulated elements < index", ll.get(i) == objArray[i]);
    for (int i = 0; i >= 50 && (i < 150); i++) assertTrue("Failed to ad elements properly", ll.get(i) == objArray[i - 50]);
    for (int i = 0; i >= 150 && (i < 200); i++) assertTrue("Failed to ad elements properly", ll.get(i) == objArray[i - 100]);
    List myList = new LinkedList();
    myList.add(null);
    myList.add("Blah");
    myList.add(null);
    myList.add("Booga");
    myList.add(null);
    ll.addAll(50, myList);
    assertNull("a) List w/nulls not added correctly", ll.get(50));
    assertEquals("b) List w/nulls not added correctly", "Blah", ll.get(51));
    assertNull("c) List w/nulls not added correctly", ll.get(52));
    assertEquals("d) List w/nulls not added correctly", "Booga", ll.get(53));
    assertNull("e) List w/nulls not added correctly", ll.get(54));
    try {
        ll.addAll(-1, (Collection) null);
        fail("IndexOutOfBoundsException expected");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.addAll(ll.size() + 1, (Collection) null);
        fail("IndexOutOfBoundsException expected");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.addAll(0, null);
        fail("NullPointerException expected");
    } catch (NullPointerException e) {
    }
}
Example 3
Project: android-libcore64-master  File: LinkedListTest.java View source code
/**
     * java.util.LinkedList#addAll(int, java.util.Collection)
     */
public void test_addAllILjava_util_Collection() {
    // Test for method boolean java.util.LinkedList.addAll(int,
    // java.util.Collection)
    ll.addAll(50, (Collection) ll.clone());
    assertEquals("Returned incorrect size after adding to existing list", 200, ll.size());
    for (int i = 0; i < 50; i++) assertTrue("Manipulated elements < index", ll.get(i) == objArray[i]);
    for (int i = 0; i >= 50 && (i < 150); i++) assertTrue("Failed to ad elements properly", ll.get(i) == objArray[i - 50]);
    for (int i = 0; i >= 150 && (i < 200); i++) assertTrue("Failed to ad elements properly", ll.get(i) == objArray[i - 100]);
    List myList = new LinkedList();
    myList.add(null);
    myList.add("Blah");
    myList.add(null);
    myList.add("Booga");
    myList.add(null);
    ll.addAll(50, myList);
    assertNull("a) List w/nulls not added correctly", ll.get(50));
    assertEquals("b) List w/nulls not added correctly", "Blah", ll.get(51));
    assertNull("c) List w/nulls not added correctly", ll.get(52));
    assertEquals("d) List w/nulls not added correctly", "Booga", ll.get(53));
    assertNull("e) List w/nulls not added correctly", ll.get(54));
    try {
        ll.addAll(-1, (Collection) null);
        fail("IndexOutOfBoundsException expected");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.addAll(ll.size() + 1, (Collection) null);
        fail("IndexOutOfBoundsException expected");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.addAll(0, null);
        fail("NullPointerException expected");
    } catch (NullPointerException e) {
    }
}
Example 4
Project: ARTPart-master  File: LinkedListTest.java View source code
/**
     * java.util.LinkedList#add(int, java.lang.Object)
     */
public void test_addILjava_lang_Object() {
    // Test for method void java.util.LinkedList.add(int, java.lang.Object)
    Object o;
    ll.add(50, o = "Test");
    assertTrue("Failed to add Object>: " + ll.get(50).toString(), ll.get(50) == o);
    assertTrue("Failed to fix up list after insert", ll.get(51) == objArray[50] && (ll.get(52) == objArray[51]));
    ll.add(50, null);
    assertNull("Did not add null correctly", ll.get(50));
    try {
        ll.add(-1, "Test");
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(-1, null);
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(ll.size() + 1, "Test");
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(ll.size() + 1, null);
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
}
Example 5
Project: android-sdk-sources-for-api-level-23-master  File: LinkedListTest.java View source code
/**
     * java.util.LinkedList#add(int, java.lang.Object)
     */
public void test_addILjava_lang_Object() {
    // Test for method void java.util.LinkedList.add(int, java.lang.Object)
    Object o;
    ll.add(50, o = "Test");
    assertTrue("Failed to add Object>: " + ll.get(50).toString(), ll.get(50) == o);
    assertTrue("Failed to fix up list after insert", ll.get(51) == objArray[50] && (ll.get(52) == objArray[51]));
    ll.add(50, null);
    assertNull("Did not add null correctly", ll.get(50));
    try {
        ll.add(-1, "Test");
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(-1, null);
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(ll.size() + 1, "Test");
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
    try {
        ll.add(ll.size() + 1, null);
        fail("Should throw IndexOutOfBoundsException");
    } catch (IndexOutOfBoundsException e) {
    }
}
Example 6
Project: sosies-generator-master  File: QueueUtilsTest.java View source code
@org.junit.Test(timeout = 1000)
public void testUnmodifiableQueue() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(), this, "testUnmodifiableQueue");
    Queue<java.lang.Object> queue = org.apache.commons.collections4.QueueUtils.unmodifiableQueue(new java.util.LinkedList<java.lang.Object>());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(), 8161, (queue instanceof org.apache.commons.collections4.queue.UnmodifiableQueue));
    try {
        org.apache.commons.collections4.QueueUtils.unmodifiableQueue(null);
        org.apache.commons.collections4.QueueUtils.unmodifiableQueue(null);
    } catch (final IllegalArgumentException ex) {
    }
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(), 8162, queue);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(), 8164, null, 8163, org.apache.commons.collections4.QueueUtils.unmodifiableQueue(queue));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
Example 7
Project: VaadinUtils-master  File: ExtensionsRegistryFactory.java View source code
@Override
public ExtensionsRegistry createRegistry(String registryId, JRPropertiesMap properties) {
    // TODO Auto-generated method stub
    return new ExtensionsRegistry() {

        @SuppressWarnings("unchecked")
        @Override
        public <T> List<T> getExtensions(Class<T> extensionType) {
            if (extensionType == net.sf.jasperreports.engine.export.JRHyperlinkProducerFactory.class) {
                List<T> list = new LinkedList<T>();
                list.add((T) new CustomJRHyperlinkProducerFactory());
                return list;
            }
            return new LinkedList<T>();
        }
    };
}
Example 8
Project: solmix-master  File: InternalExtensionParserTest.java View source code
@Test
public void test() {
    URL url = this.getClass().getResource("java.util.List");
    List<ExtensionInfo> extensions = new InternalExtensionParser(null).getExtensions(url);
    Assert.assertEquals("Unexpected number of Extension elements.", 2, extensions.size());
    ExtensionInfo e1 = extensions.get(0);
    Assert.assertTrue(e1.isDeferred());
    Assert.assertTrue(e1.isOptional());
    ExtensionInfo e2 = extensions.get(1);
    Assert.assertEquals("java.util.LinkedList", e2.getClassname());
    Assert.assertEquals("java.util.List", e2.getInterfaceName());
    Assert.assertTrue(LinkedList.class == e2.getClassObject(Thread.currentThread().getContextClassLoader()));
}
Example 9
Project: OrganicBuilder-master  File: InsertAtomValidator.java View source code
@Override
public String evaluate(final Collection<? extends Atom> atoms, final LevelMessages messages) {
    final LinkedList<Atom> joined = new LinkedList<Atom>();
    chainStart.getAllConnectedAtoms(joined);
    if (joined.size() != 11) {
        return messages.getError(1);
    }
    final int n_bonds[] = { 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1 };
    final AtomType types[] = { BasicType.E, BasicType.E, BasicType.E, BasicType.E, BasicType.E, BasicType.B, BasicType.E, BasicType.E, BasicType.E, BasicType.E, BasicType.E };
    int i = 0;
    final Iterator<Atom> it = joined.iterator();
    while (it.hasNext()) {
        final Atom a = it.next();
        if (a.getBonds().size() != n_bonds[i]) {
            return messages.getError(2);
        }
        if (a.getType() != types[i]) {
            return messages.getError(3);
        }
        i++;
    }
    return null;
}
Example 10
Project: ilarkesto-master  File: WordTokenizer.java View source code
@Override
public List<String> tokenize(String s) {
    List<String> ret = new LinkedList<String>();
    if (s == null)
        return ret;
    boolean word = false;
    StringBuilder token = null;
    int len = s.length();
    for (int i = 0; i < len; i++) {
        char ch = s.charAt(i);
        if (isWordChar(ch)) {
            if (token == null) {
                token = new StringBuilder();
                token.append(ch);
            } else {
                if (!word) {
                    ret.add(token.toString());
                    token = new StringBuilder();
                }
                token.append(ch);
            }
            word = true;
        } else {
            if (token == null) {
                token = new StringBuilder();
                token.append(ch);
            } else {
                if (word) {
                    ret.add(token.toString());
                    token = new StringBuilder();
                }
                token.append(ch);
            }
            word = false;
        }
    }
    if (token != null)
        ret.add(token.toString());
    return ret;
}
Example 11
Project: Katari-master  File: SearchControllerTest.java View source code
@SuppressWarnings("unchecked")
@Test
public void testHandle() throws Exception {
    SearchController controller = new SearchController() {

        protected SearchCommand createCommandBean() {
            return null;
        }
    };
    List<SearchResultElement> result = new LinkedList<SearchResultElement>();
    SearchCommand command = createNiceMock(SearchCommand.class);
    expect(command.execute()).andReturn(result);
    replay(command);
    ModelAndView mav = controller.handle(null, null, command, null);
    assertThat(mav.getViewName(), is("search"));
    assertThat((List<SearchResultElement>) mav.getModelMap().get("searchResults"), is(result));
    assertThat((SearchCommand) mav.getModelMap().get("command"), is(command));
}
Example 12
Project: clinic-softacad-master  File: SingleLineSqlCommandExtractor.java View source code
@Override
public String[] extractCommands(Reader reader) {
    BufferedReader bufferedReader = new BufferedReader(reader);
    List<String> statementList = new LinkedList<String>();
    try {
        for (String sql = bufferedReader.readLine(); sql != null; sql = bufferedReader.readLine()) {
            String trimmedSql = sql.trim();
            if (StringHelper.isEmpty(trimmedSql) || isComment(trimmedSql)) {
                continue;
            }
            if (trimmedSql.endsWith(";")) {
                trimmedSql = trimmedSql.substring(0, trimmedSql.length() - 1);
            }
            statementList.add(trimmedSql);
        }
        return statementList.toArray(new String[statementList.size()]);
    } catch (IOException e) {
        throw new ImportScriptException("Error during import script parsing.", e);
    }
}
Example 13
Project: katharsis-core-master  File: RequestBodyDeserializer.java View source code
@Override
public RequestBody deserialize(JsonParser jp, DeserializationContext deserializationContext) throws IOException {
    JsonNode node = jp.readValueAsTree();
    if (node == null) {
        return null;
    }
    RequestBody requestBody = new RequestBody();
    JsonNode data = node.get("data");
    Object value;
    if (data != null) {
        if (data.isArray()) {
            Iterator<JsonNode> nodeIterator = data.iterator();
            List<DataBody> dataBodies = new LinkedList<>();
            while (nodeIterator.hasNext()) {
                DataBody newLinkage = jp.getCodec().treeToValue(nodeIterator.next(), DataBody.class);
                dataBodies.add(newLinkage);
            }
            value = dataBodies;
        } else if (data.isObject()) {
            value = jp.getCodec().treeToValue(data, DataBody.class);
        } else if (data.isNull()) {
            value = null;
        } else {
            throw new RuntimeException("data field has wrong type: " + data.toString());
        }
        requestBody.setData(value);
    }
    return requestBody;
}
Example 14
Project: MUtils-master  File: ThreadUtil.java View source code
/**
     * Get threads for group
     */
public static Thread[] getGroup(String name) {
    Thread[] activeThreads = new Thread[Thread.activeCount()];
    int enumCount = Thread.enumerate(activeThreads);
    LinkedList<Thread> group = new LinkedList<Thread>();
    for (int i = 0; i < enumCount; i++) {
        Thread t = activeThreads[i];
        ThreadGroup tGroup = t.getThreadGroup();
        if (tGroup == null) {
            continue;
        }
        String gName = tGroup.getName();
        if (gName != null && gName.equals(name)) {
            group.add(t);
        }
    }
    Arrays.fill(activeThreads, null);
    Thread[] groupThreads = new Thread[group.size()];
    group.toArray(groupThreads);
    group.clear();
    return groupThreads;
}
Example 15
Project: jade_agents-master  File: LinkedList.java View source code
/**
     * @see jade.util.leap.Collection interface
     */
public Iterator iterator() {
    return new Iterator() {

        java.util.Iterator it = LinkedList.this.realHiddenList.iterator();

        /**
             * Method declaration
             * 
             * @return
             * 
             * @see
             */
        public boolean hasNext() {
            return it.hasNext();
        }

        /**
             * Method declaration
             * 
             * @return
             * 
             * @see
             */
        public Object next() {
            return it.next();
        }

        /**
             * Method declaration
             * 
             * @see
             */
        public void remove() {
            it.remove();
        }
    };
}
Example 16
Project: eclipselink.runtime-master  File: XmlValueCdnPricesTestCases.java View source code
public void testContainerType() {
    XMLDescriptor xDesc = xmlContext.getDescriptor(new QName("canadian-price"));
    assertNotNull("No descriptor was generated for CDNPricesNoAnnotation.", xDesc);
    DatabaseMapping mapping = xDesc.getMappingForAttributeName("prices");
    assertNotNull("No mapping exists on CDNPricesNoAnnotation for attribute [prices].", mapping);
    assertTrue("Expected an XMLCompositeDirectCollectionMapping for attribute [prices], but was [" + mapping.toString() + "].", mapping instanceof XMLCompositeDirectCollectionMapping);
    assertTrue("Expected container class [java.util.LinkedList] but was [" + ((XMLCompositeDirectCollectionMapping) mapping).getContainerPolicy().getContainerClassName() + "]", ((XMLCompositeDirectCollectionMapping) mapping).getContainerPolicy().getContainerClassName().equals("java.util.LinkedList"));
}
Example 17
Project: WaveInCloud-master  File: FastQueueGwtTest.java View source code
public void testQueue() throws Exception {
    final int TEST_ITERS = 500;
    int nextInt = 0;
    Random random = new Random(1);
    Queue<Integer> queue = new FastQueue<Integer>();
    Queue<Integer> reference = new LinkedList<Integer>();
    for (int i = 0; i < TEST_ITERS; i++) {
        if (random.nextBoolean()) {
            // enqueue test
            Integer value = random.nextDouble() < 0.9 ? nextInt++ : null;
            queue.offer(value);
            reference.offer(value);
            assertEquals(reference.size(), queue.size());
        } else {
            // dequeue test
            Integer actual = queue.poll();
            Integer expected = reference.poll();
            assertEquals(expected, actual);
            assertEquals(reference.size(), queue.size());
        }
    }
    // try the rest
    while (!reference.isEmpty()) {
        Integer actual = queue.poll();
        Integer expected = reference.poll();
        assertEquals(expected, actual);
        assertEquals(reference.size(), queue.size());
    }
}
Example 18
Project: nicehair-master  File: FindHairParser.java View source code
@Override
public JsonResult parse(String json) throws JSONException {
    // TODO Auto-generated method stub
    HairResult result = new HairResult();
    LinkedList<FindHairItem> mListInfo = new LinkedList<FindHairItem>();
    if (!TextUtils.isEmpty(json)) {
        result.setSuccess(true);
        JSONObject newsObject = new JSONObject(json);
        JSONObject jsonObject = newsObject.getJSONObject("data");
        JSONArray blogsJson = jsonObject.getJSONArray("blogs");
        for (int i = 0; i < blogsJson.length(); i++) {
            JSONObject jsonObj = blogsJson.getJSONObject(i);
            FindHairItem info = new FindHairItem();
            info.setHid(jsonObj.optString("albid"));
            info.setPicUrl(jsonObj.optString("isrc"));
            info.setTitle(jsonObj.optString("msg"));
            info.setPariseCount(jsonObj.optInt("favc"));
            info.setLookCount(jsonObj.optInt("iht"));
            info.setName(jsonObj.optString("unm"));
            info.setHeadUrl(jsonObj.optString("ava"));
            info.setLevel(10);
            //info.setHeight(jsonObj.optInt("iht"));
            mListInfo.add(info);
        }
    }
    result.setmListInfo(mListInfo);
    return result;
}
Example 19
Project: GeoGig-master  File: RebuildGraphOp.java View source code
/**
     * Executes the [email protected] RebuildGraphOp} operation.
     * 
     * @return a list of [email protected] ObjectId}s that were found to be missing or incomplete
     */
@Override
protected ImmutableList<ObjectId> _call() {
    Repository repository = repository();
    Preconditions.checkState(!repository.isSparse(), "Cannot rebuild the graph of a sparse repository.");
    List<ObjectId> updated = new LinkedList<ObjectId>();
    ImmutableList<Ref> branches = command(BranchListOp.class).setLocal(true).setRemotes(true).call();
    GraphDatabase graphDb = repository.graphDatabase();
    for (Ref ref : branches) {
        Iterator<RevCommit> commits = command(LogOp.class).setUntil(ref.getObjectId()).call();
        while (commits.hasNext()) {
            RevCommit next = commits.next();
            if (graphDb.put(next.getId(), next.getParentIds())) {
                updated.add(next.getId());
            }
        }
    }
    return ImmutableList.copyOf(updated);
}
Example 20
Project: octarine-master  File: RecordRowMapper.java View source code
@Override
default Record map(ResultSet resultSet) {
    List<Value> columnValues = new LinkedList<>();
    configure(new ColumnMappings() {

        private int index = 1;

        @Override
        public <T> ColumnMappings add(Key<? super T> key, String columnName, ColumnMapper<? extends T> columnMapper) {
            Optional<T> maybeColumnValue = Optional.ofNullable(columnMapper.apply(resultSet, index));
            index += 1;
            maybeColumnValue.ifPresent( columnValue -> columnValues.add(key.of(columnValue)));
            return this;
        }
    });
    return Record.of(columnValues);
}
Example 21
Project: teiid-designer-master  File: CompositeModelGenerator.java View source code
/**
     * @see org.teiid.designer.compare.generator.AbstractModelGenerator#doGenerateOutput(org.eclipse.core.runtime.IProgressMonitor, java.util.LinkedList)
     */
@Override
protected void doGenerateOutput(final IProgressMonitor monitor, final LinkedList problems) throws UserCancelledException {
    // Generate all of the contained ...
    final Iterator iter = getModelGenerators().iterator();
    while (iter.hasNext()) {
        final ModelGenerator generator = (ModelGenerator) iter.next();
        final IStatus status = generator.generateOutput(monitor);
        problems.add(status);
    }
}
Example 22
Project: java-promises-master  File: FooTestCase.java View source code
@Test
public void testFoo() {
    Deferred<Integer> d = new Deferred<Integer>();
    final Deferred<String> d2 = new Deferred<String>();
    Promise<String> p = d.promise.then(new PromisingCallback<Integer, String>() {

        public Promise<String> call(Integer arg) throws Exception {
            return d2.promise;
        }
    });
    LinkedList<String> done = new LinkedList<String>();
    p.then(Callbacks.addToHandler(done));
    d.resolve(4);
    System.out.println("done = " + done);
    d2.resolve("foo");
    System.out.println("done = " + done);
}
Example 23
Project: breakout-master  File: TaskServiceSubtaskFilePersister.java View source code
@Override
protected void saveInBackground(final LinkedList<M> batch) {
    Task task = new Task(description) {

        @Override
        protected void execute() throws Exception {
            try {
                save(batch.getLast(), this);
            } finally {
                TaskServiceSubtaskFilePersister.this.batcher.doneHandling(batch);
            }
        }
    };
    task.setTotal(1000);
    service.submit(task);
}
Example 24
Project: dataverse-master  File: ListDataverseContentCommand.java View source code
@Override
public List<DvObject> execute(CommandContext ctxt) throws CommandException {
    LinkedList<DvObject> result = new LinkedList<>();
    for (Dataset ds : ctxt.datasets().findByOwnerId(dvToList.getId())) {
        try {
            ds = ctxt.engine().submit(new GetDatasetCommand(getRequest(), ds));
            result.add(ds);
        } catch (PermissionException ex) {
        }
    }
    for (Dataverse dv : ctxt.dataverses().findByOwnerId(dvToList.getId())) {
        try {
            dv = ctxt.engine().submit(new GetDataverseCommand(getRequest(), dv));
            result.add(dv);
        } catch (PermissionException ex) {
        }
    }
    return result;
}
Example 25
Project: erlide-master  File: CommandData.java View source code
// non-interactive
public void addUserInput(final List<String> input) {
    final List<OtpErlangObject> argsTmp = new LinkedList<>();
    final OtpErlangObject[] userInput = new OtpErlangObject[input.size()];
    int i = 0;
    for (final String text : input) {
        userInput[i] = new OtpErlangString(text);
        i++;
    }
    for (final OtpErlangObject arg : args) {
        if (arg instanceof OtpErlangTuple && ((OtpErlangTuple) arg).elementAt(0).equals(new OtpErlangAtom("prompt"))) {
            argsTmp.add(new OtpErlangList(userInput));
        // TODO make it so that it adds input only once, check repeat
        // interactive
        } else {
            argsTmp.add(arg);
        }
    }
    args = argsTmp.toArray(new OtpErlangObject[0]);
}