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

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

The 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 ShopifyThemes {

	private final Map themeIdToShopifyTheme;

	public ShopifyThemes(final List shopifyThemes) {
		themeIdToShopifyTheme = new HashMap<>(shopifyThemes.size());
		shopifyThemes.stream().forEach(shopifyTheme -> {
			themeIdToShopifyTheme.put(shopifyTheme.getId(), shopifyTheme);
		});
	}

	public ShopifyTheme get(final String themeId) {
		return themeIdToShopifyTheme.get(themeId);
	}

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy