copy

fun copy(id: CategoryId = this.id, name: String = this.name, parents: Set<CategoryId> = this.parents, children: Set<CategoryId> = this.children, synonyms: List<String> = this.synonyms): PoiCategory

Creates a copy of this PoiCategory object.

Return

The copied PoiCategory object.

Parameters

id

The new identifier for the POI category, defaults to the current value.

name

The new name of the POI category, defaults to the current value.

parents

The new list of parent ids for the POI category, defaults to the current value.

children

The new list of sub-category ids for the POI category, defaults to the current value.

synonyms

The new synonyms for the POI category, defaults to the current value.