Java List Size getSize(List sourceList)

Here you can find the source of getSize(List sourceList)

Description

get Size

License

Open Source License

Declaration

public static <V> int getSize(List<V> sourceList) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static <V> int getSize(List<V> sourceList) {
        return sourceList == null ? 0 : sourceList.size();
    }/*from  w  ww  .jav  a  2 s  . c o m*/
}

Related

  1. getSize(List list)
  2. getSize(List list)
  3. getSize(List positions)
  4. getSize(List sourceList)
  5. size(List list)
  6. size(Object[] list)
  7. sizeNotNull(final List list)