![JAR search and dependency download from the Maven repository](/logo.png)
com.dft.api.shopify.model.ShopifyThemes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-admin-rest Show documentation
Show all versions of shopify-admin-rest Show documentation
Shopify Admin REST API using JDK 11 and Reactive Programming
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