*/
package org.opendaylight.yangtools.yang.model.api;
-import java.util.ArrayList;
-import java.util.Collections;
import java.util.List;
import org.opendaylight.yangtools.yang.common.QName;
+import com.google.common.collect.ImmutableList;
+
/**
*
* Represents unique path to the every node inside the module.
* relative
*/
public SchemaPath(final List<QName> path, final boolean absolute) {
- this.path = Collections.unmodifiableList(new ArrayList<QName>(path));
+ this.path = ImmutableList.copyOf(path);
this.absolute = absolute;
}