Java List Cast castListUnchecked(Object list)

Here you can find the source of castListUnchecked(Object list)

Description

cast List Unchecked

License

Open Source License

Declaration

@SuppressWarnings("unchecked")
    public static <T> java.util.List<T> castListUnchecked(Object list) 

Method Source Code

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

public class Main {
    @SuppressWarnings("unchecked")
    public static <T> java.util.List<T> castListUnchecked(Object list) {
        return (java.util.List<T>) list;
    }/*from   ww  w. j  a  v  a2  s  .  c  o  m*/
}

Related

  1. castList(Collection c)
  2. castList(final List original)
  3. castList(final Object object)
  4. castList(List list, Class clazz)
  5. castListElem(List list, V target)
  6. castNonNullListParameterTo(String parameterName, List value, Class requiredType)
  7. castOrCopyToList(Iterable iterable)
  8. castTo(final List list, final Class clasz)
  9. castToDocumentList(Object obj)