static PathElement of(String kind) { return new PathElement(kind, null, null); }
public static PathElement of(String kind, long id) { checkArgument(id != 0, "id must not be equal to zero"); return new PathElement(kind, null, id); } }
public static PathElement of(String kind, String name) { checkArgument(!Strings.isNullOrEmpty(name), "name must not be empty or null"); checkArgument(name.length() <= 500, "name must not exceed 500 characters"); return new PathElement(kind, name, null); }
static PathElement of(String kind) { return new PathElement(kind, null, null); }
public static PathElement of(String kind, long id) { checkArgument(id != 0, "id must not be equal to zero"); return new PathElement(kind, null, id); } }
public static PathElement of(String kind, String name) { checkArgument(!Strings.isNullOrEmpty(name), "name must not be empty or null"); checkArgument(name.length() <= 500, "name must not exceed 500 characters"); return new PathElement(kind, name, null); }