public static Path of(final int... path) {
			for (int i = 0; i < path.length; ++i) {
				if (path[i] < 0) {
					throw new IllegalArgumentException(format(
						"Path element at position %d is smaller than zero: %d",
						i, path[i]
					));
				}
			}

			return new Path(path.clone());
		}
Create a new path object from the given child indexes.

@param path the child indexes
@return a new tree path
@throws IllegalArgumentException if one of the path elements is
        smaller than zero
jenetics.ext/src/main/java/io/jenetics/ext/util/Tree.java