Java List Cast CAST_LIST(Class className, Object obj)

Here you can find the source of CAST_LIST(Class className, Object obj)

Description

CASLIST

License

Open Source License

Declaration

@SuppressWarnings("unchecked")
    public static <T> List<T> CAST_LIST(Class<T> className, Object obj) 

Method Source Code

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

import java.util.List;

public class Main {
    @SuppressWarnings("unchecked")
    public static <T> List<T> CAST_LIST(Class<T> className, Object obj) {
        return (List<T>) obj;
    }//from w  w  w  .j  a  va  2s  .co m
}

Related

  1. cast(List list)
  2. cast(List list)
  3. cast(List list)
  4. cast(List list, Class klass)
  5. cast(List from)
  6. castList(Class clazz, Collection c)
  7. castList(Class clazz, Collection c)
  8. castList(Class clazz, Collection collection)
  9. castList(Class elementType, List list)