src/main/java/io/magicthegathering/javasdk/api/SetAPI.java
public static List<MtgSet> getAllSetsWithCards() {
		List<MtgSet> returnList = getList(RESOURCE_PATH, "sets", MtgSet.class);
		for(MtgSet set : returnList){
			set.setCards(CardAPI.getAllCards(new LinkedList<>(Collections.singletonList("set=" + set.getCode()))));
		}
		return returnList;
	}
public static List<MtgSet> getAllSetsWithCards() {
		List<MtgSet> returnList = getList(RESOURCE_PATH, "sets", MtgSet.class);
		for(MtgSet set : returnList){
			set.setCards(CardAPI.getAllCards(new LinkedList<>(Collections.singletonList("set=" + set.getCode()))));
		}
		return returnList;
	}
public static List < MtgSet > getAllSetsWithCards ( ) { List < MtgSet > returnList = getList ( RESOURCE_PATH , "sets" , MtgSet . class ) ; for ( MtgSet set : returnList ) { set . setCards ( CardAPI . getAllCards ( new LinkedList <> ( Collections . singletonList ( "set=" + set . getCode ( ) ) ) ) ) ; } return returnList ; }
Gets a list of {@link MtgSet} with all the card objects populated.
Performance will be degraded because of all the Api calls that will
happen.
@return A list of all the sets with cards populated.
Gets a list of {