Java List Null Empty maskNull(List pTypes)

Here you can find the source of maskNull(List pTypes)

Description

mask Null

License

Open Source License

Declaration

private static List<String> maskNull(List<String> pTypes) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    private static List<String> maskNull(List<String> pTypes) {
        return (pTypes == null) ? Collections.<String>emptyList() : pTypes;
    }/*w ww  .  j  a  v a2  s .com*/
}

Related

  1. isNullOrEmptyList(String message, List list)
  2. isObjectListEmpty(List list)
  3. listToItemOrNull(List list)
  4. listWithoutNull(A... elements)
  5. listWithoutNull(final List list)
  6. newListIfNull(List list)
  7. newListWhenNull(List list)
  8. newListWithOneNull()
  9. nullOrEmpty(List s)