All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dft.api.shopify.model.ShopifyAssets Maven / Gradle / Ivy

There is a newer version: 2024.10.01
Show newest version
package com.dft.api.shopify.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ShopifyAssets {

	private final Map themeIdToShopifyAsset;

	public ShopifyAssets(final List shopifyAssets) {
		themeIdToShopifyAsset = new HashMap<>(shopifyAssets.size());
		shopifyAssets.stream().forEach(shopifyAsset -> {
			themeIdToShopifyAsset.put(shopifyAsset.getKey(), shopifyAsset);
		});
	}

	public ShopifyAsset get(final String themeId) {
		return themeIdToShopifyAsset.get(themeId);
	}

	public List values() {
		return new ArrayList<>(themeIdToShopifyAsset.values());
	}

	
	public int size() {
		return themeIdToShopifyAsset.size();
	}

	public boolean containsKey(final String themeId) {
		return themeIdToShopifyAsset.containsKey(themeId);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy