@Override public Map<K, V> build() { return immutableCopyOf(underlying); } }
/** * Delivers an immutable map of the translation. * * @return the key-value pairs for the translation */ @JsonAnyGetter//@JsonUnwrap supports not maps, but this construct puts map content on top level private Map<Locale, String> getTranslations() { return immutableCopyOf(translations); }
@JsonAnyGetter//@JsonUnwrap supports not maps, but this construct puts map content on top level public Map<Locale, List<SearchKeyword>> getContent() { return immutableCopyOf(content); }
CategoryTreeImpl(final List<Category> roots, final List<Category> allAsFlatList, final Map<LocaleSlugPair, Category> categoriesByLocaleAndSlug, final Map<String, Category> categoriesById) { this.roots = immutableCopyOf(roots); this.allAsFlatList = immutableCopyOf(allAsFlatList); this.categoriesByLocaleAndSlug = immutableCopyOf(categoriesByLocaleAndSlug); this.categoriesById = immutableCopyOf(categoriesById); }
CategoryTreeImpl(final List<Category> roots, final List<Category> allAsFlatList, final Map<LocaleSlugPair, Category> categoriesByLocaleAndSlug, final Map<String, Category> categoriesById) { this.roots = immutableCopyOf(roots); this.allAsFlatList = immutableCopyOf(allAsFlatList); this.categoriesByLocaleAndSlug = immutableCopyOf(categoriesByLocaleAndSlug); this.categoriesById = immutableCopyOf(categoriesById); }
CategoryTreeImpl(final List<Category> roots, final List<Category> allAsFlatList, final Map<LocaleSlugPair, Category> categoriesByLocaleAndSlug, final Map<String, Category> categoriesById) { this.roots = immutableCopyOf(roots); this.allAsFlatList = immutableCopyOf(allAsFlatList); this.categoriesByLocaleAndSlug = immutableCopyOf(categoriesByLocaleAndSlug); this.categoriesById = immutableCopyOf(categoriesById); }
CategoryTreeImpl(final List<Category> roots, final List<Category> allAsFlatList, final Map<LocalizedStringEntry, Category> categoriesByLocaleAndSlug, final Map<String, Category> categoriesById, final Map<String, List<Category>> childrenByParentId) { this.childrenByParentId = childrenByParentId; this.roots = immutableCopyOf(roots); this.allAsFlatList = immutableCopyOf(allAsFlatList); this.categoriesByLocaleAndSlug = immutableCopyOf(categoriesByLocaleAndSlug); this.categoriesById = immutableCopyOf(categoriesById); }
CustomFieldsDraft(@Nullable final String typeId, @Nullable final String typeKey, final Map<String, JsonNode> fields) { this.type = ResourceIdentifier.ofIdOrKey(typeId, typeKey); this.fields = MapUtils.immutableCopyOf(fields); }