Skip to content

Commit

Permalink
Merge pull request #31 from protegeproject/update-perspective-id
Browse files Browse the repository at this point in the history
Added Javadoc
  • Loading branch information
matthewhorridge authored Jan 31, 2025
2 parents 84fafb2 + d0e3d9a commit cdce053
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public static PerspectiveId get(@Nonnull String id) {
return new AutoValue_PerspectiveId(id);
}

/**
* Generates a fresh {@link PerspectiveId} using a randomly generated UUID.
* @return The newly generated {@link PerspectiveId}.
*/
@Nonnull
public static PerspectiveId generate() {
return get(UUID.randomUUID().toString());
}
Expand Down

0 comments on commit cdce053

Please sign in to comment.