Java Map Add addToAnd(T target, Map... items)

Here you can find the source of addToAnd(T target, Map... items)

Description

add To And

License

Apache License

Declaration

@SuppressWarnings("unchecked")
    public static <T extends Map<String, Object>> T addToAnd(T target, Map... items) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;
import java.util.Map;

public class Main {
    @SuppressWarnings("unchecked")
    public static <T extends Map<String, Object>> T addToAnd(T target, Map... items) {
        for (Map item : items)
            ((List) target.get("$and")).add(item);
        return target;
    }//from  w w w .j av a 2  s.  co  m
}

Related

  1. addOne(Map map, K key)
  2. addOne(Map map, T key)
  3. addTo(Map> map, K key, T value)
  4. addTo(Map map, N key, E element, Class collectionClass)
  5. addToList(Map> map, X key, Y value)
  6. addToListMap(Map map, Object key, Object value)
  7. addToListMap(Map> map, K key, V value)
  8. addToListMap(Map> map, String key, String value)