src/main/java/io/magicthegathering/javasdk/api/SetAPI.java
public static MtgSet getSet(String setCode) {
		String path = String.format("%s/%s/", RESOURCE_PATH, setCode);
		MtgSet returnSet = get(path, "set", MtgSet.class);
		if(returnSet != null) {
			returnSet.setCards(CardAPI.getAllCards(new LinkedList<>(Collections.singletonList("set=" + setCode))));
		}
		return returnSet;
	}
public static MtgSet getSet(String setCode) {
		String path = String.format("%s/%s/", RESOURCE_PATH, setCode);
		MtgSet returnSet = get(path, "set", MtgSet.class);
		if(returnSet != null) {
			returnSet.setCards(CardAPI.getAllCards(new LinkedList<>(Collections.singletonList("set=" + setCode))));
		}
		return returnSet;
	}
public static MtgSet getSet ( String setCode ) { String path = String . format ( "%s/%s/" , RESOURCE_PATH , setCode ) ; MtgSet returnSet = get ( path , "set" , MtgSet . class ) ; if ( returnSet != null ) { returnSet . setCards ( CardAPI . getAllCards ( new LinkedList <> ( Collections . singletonList ( "set=" + setCode ) ) ) ) ; } return returnSet ; }
Returns a {@link MtgSet} based on the given set code.
@param setCode Code to find the specific set.
Returns a {