Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f40daf8

Browse filesBrowse files
committed
Add some missing javadoc in the newly added GHArtifact
1 parent 3e6a5bc commit f40daf8
Copy full SHA for f40daf8

File tree

Expand file treeCollapse file tree

1 file changed

+25
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+25
-0
lines changed

‎src/main/java/org/kohsuke/github/GHArtifact.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHArtifact.java
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,47 @@ public class GHArtifact extends GHObject {
2828
private boolean expired;
2929
private String expiresAt;
3030

31+
/**
32+
* Gets the name.
33+
*
34+
* @return the name
35+
*/
3136
public String getName() {
3237
return name;
3338
}
3439

40+
/**
41+
* Gets the size of the artifact in bytes.
42+
*
43+
* @return the size
44+
*/
3545
public long getSizeInBytes() {
3646
return sizeInBytes;
3747
}
3848

49+
/**
50+
* Gets the archive download URL.
51+
*
52+
* @return the archive download URL
53+
*/
3954
public URL getArchiveDownloadUrl() {
4055
return GitHubClient.parseURL(archiveDownloadUrl);
4156
}
4257

58+
/**
59+
* If this artifact has expired.
60+
*
61+
* @return if the artifact has expired
62+
*/
4363
public boolean isExpired() {
4464
return expired;
4565
}
4666

67+
/**
68+
* Gets the date at which this artifact will expire.
69+
*
70+
* @return the date of expiration
71+
*/
4772
public Date getExpiresAt() {
4873
return GitHubClient.parseDate(expiresAt);
4974
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.