Java Script Binding convertArray(Bindings from)

Here you can find the source of convertArray(Bindings from)

Description

convert Array

License

Open Source License

Declaration

private static BasicDBList convertArray(Bindings from) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import javax.script.Bindings;

import com.mongodb.BasicDBList;

public class Main {
    private static BasicDBList convertArray(Bindings from) {
        BasicDBList list = new BasicDBList();
        for (int i = 0; i < from.size(); i++) {
            list.add(from.get(String.valueOf(i)));
        }/*from w  w w  . j ava 2s  .  c  o m*/
        return list;
    }
}

Related

  1. buildOptions(T buildedOptions, Bindings options)
  2. documentFromMap(Bindings from)
  3. getBindings(Bindings bindings)
  4. getBindings(Map bindings)
  5. merge(Bindings former, Bindings latter)