Java List Null Empty fillNull(List lst, int size)

Here you can find the source of fillNull(List lst, int size)

Description

fill Null

License

Apache License

Declaration

public static void fillNull(List lst, int size) 

Method Source Code

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

import java.util.List;

public class Main {

    public static void fillNull(List lst, int size) {
        for (int i = lst.size(); i < size; i++) {
            lst.add(null);/*from ww  w. j  ava  2  s .c om*/
        }
    }
}

Related

  1. emptyToNull(List list)
  2. equalsEmptyEqNull(List list1, List list2)
  3. equalsNullSafe(List list1, List list2)
  4. fillEmptyEntries(Iterable keys, Map> map)
  5. fillNull(final List list, final int numElements)
  6. fillUpWithNulls(List list)
  7. getEmptyList(Class cls)
  8. getEmptyList(Class tClass)
  9. getIgnoreNull(List list, int n)