Here you can find the source of castList(final Object object)
Parameter | Description |
---|---|
object | Object |
@SuppressWarnings("unchecked") public static <T> List<T> castList(final Object object)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**/*from w w w.j av a 2 s .c o m*/ * Cast {@link Object} to {@link List}. * * @param object * {@link Object} * @return {@link List} */ @SuppressWarnings("unchecked") public static <T> List<T> castList(final Object object) { return (List<T>) object; } }