src/main/java/me/hyfe/simplespigot/config/Config.java
/**
     * Gets a list of generic types from the config file.
     *
     * @param key The key of where the list can be found in the file.
     * @return The list that was found at the key specified in the config file.
     */
Gets a list of generic types from the config file.
@param key The key of where the list can be found in the file.
@return The list that was found at the key specified in the config file.
Gets a list of generic types from the config file . @param key The key of where the list can be found in the file . @return The list that was found at the key specified in the config file .
@SuppressWarnings("unchecked")
    public <T> List<T> list(String key) {
        Object object = this.get(key);
        return object instanceof List ? (List<T>) object : Lists.newArrayList();
    }
@ SuppressWarnings ( "unchecked" ) public < T > List < T > list ( String key ) { Object object = this . get ( key ) ; return object instanceof List ? ( List < T > ) object : Lists . newArrayList ( ) ; }
Gets a list of generic types from the config file.
Gets a list of generic types from the config file .