Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Builder setCreateTimeMillis(Long createTimeMillis) {
}

@Override
Builder setParent(ResourceId parent) {
public Builder setParent(ResourceId parent) {
infoBuilder.setParent(parent);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static State[] values() {
}
}

static class ResourceId implements Serializable {
public static class ResourceId implements Serializable {

private static final long serialVersionUID = -325199985993344726L;

Expand All @@ -118,11 +118,15 @@ static class ResourceId implements Serializable {
this.type = checkNotNull(type);
}

String getId() {
public static ResourceId of(String id, String type) {
return new ResourceId(checkNotNull(id), checkNotNull(type));
}

public String getId() {
return id;
}

String type() {
public String getType() {
return type;
}

Expand Down Expand Up @@ -201,7 +205,7 @@ public abstract static class Builder {

abstract Builder setCreateTimeMillis(Long createTimeMillis);

abstract Builder setParent(ResourceId parent);
public abstract Builder setParent(ResourceId parent);

public abstract ProjectInfo build();
}
Expand Down Expand Up @@ -285,7 +289,7 @@ Builder setCreateTimeMillis(Long createTimeMillis) {
}

@Override
Builder setParent(ResourceId parent) {
public Builder setParent(ResourceId parent) {
this.parent = parent;
return this;
}
Expand Down