Java List Cast cast(List from)

Here you can find the source of cast(List from)

Description

cast

License

Open Source License

Declaration

@SuppressWarnings("unchecked")
    public static <E, F extends E> List<E> cast(List<F> from) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    @SuppressWarnings("unchecked")
    public static <E, F extends E> List<E> cast(List<F> from) {
        return (List<E>) from;
    }/*from w w w .j av  a 2 s. c o m*/
}

Related

  1. cast(final List list)
  2. cast(List list)
  3. cast(List list)
  4. cast(List list)
  5. cast(List list, Class klass)
  6. CAST_LIST(Class className, Object obj)
  7. castList(Class clazz, Collection c)
  8. castList(Class clazz, Collection c)
  9. castList(Class clazz, Collection collection)