src/main/java/io/magicthegathering/javasdk/api/MTGAPI.java
protected static <TYPE> List<TYPE> getList(String path, String key,
			Class<TYPE> expectedClass, List<String> filters) {
		StringBuilder tempPath = new StringBuilder(path);
		tempPath.append("?");

		for (String filter :
				filters) {
			tempPath.append(filter).append('&');
		}

		return getList(tempPath.substring(0, tempPath.length() - 1), key, expectedClass);
	}
protected static <TYPE> List<TYPE> getList(String path, String key,
			Class<TYPE> expectedClass, List<String> filters) {
		StringBuilder tempPath = new StringBuilder(path);
		tempPath.append("?");

		for (String filter :
				filters) {
			tempPath.append(filter).append('&');
		}

		return getList(tempPath.substring(0, tempPath.length() - 1), key, expectedClass);
	}
protected static < TYPE > List < TYPE > getList ( String path , String key , Class < TYPE > expectedClass , List < String > filters ) { StringBuilder tempPath = new StringBuilder ( path ) ; tempPath . append ( "?" ) ; for ( String filter : filters ) { tempPath . append ( filter ) . append ( ' ' ) ; } return getList ( tempPath . substring ( 0 , tempPath . length ( ) - 1 ) , key , expectedClass ) ; }
Get the list of objects with a filter if there is anything that matches the filters.

@param path Controlled by what is calling the function, currently "sets" or "cards"
depending on the calling class.
@param key The key for the JSON element we are looking for.
@param expectedClass The class type we are expecting to get back.
@param filters List of filters we want to apply to the search, you can see a full list of
accepted filters at <a href="https://docs.magicthegathering.io/#overview">the web API docs</a>
@return List of found cards.
Get the list of objects with a filter if there is anything that matches the filters .