use of org.bson.codecs.pojo.entities.GenericHolderModel in project mongo-java-driver by mongodb.
the class PojoTestCase method getNestedGenericHolderSimpleGenericsModel.
static NestedGenericHolderSimpleGenericsModel getNestedGenericHolderSimpleGenericsModel() {
SimpleModel simpleModel = getSimpleModel();
Map<String, SimpleModel> map = new HashMap<String, SimpleModel>();
map.put("A", simpleModel);
Map<String, Map<String, SimpleModel>> mapB = new HashMap<String, Map<String, SimpleModel>>();
mapB.put("A", map);
SimpleGenericsModel<Integer, List<SimpleModel>, Map<String, SimpleModel>> simpleGenericsModel = new SimpleGenericsModel<Integer, List<SimpleModel>, Map<String, SimpleModel>>(42, 42, singletonList(singletonList(simpleModel)), mapB);
GenericHolderModel<SimpleGenericsModel<Integer, List<SimpleModel>, Map<String, SimpleModel>>> nested = new GenericHolderModel<SimpleGenericsModel<Integer, List<SimpleModel>, Map<String, SimpleModel>>>(simpleGenericsModel, 42L);
return new NestedGenericHolderSimpleGenericsModel(nested);
}
Aggregations