Package com.jcabi.github
Class Fork.Smart
java.lang.Object
com.jcabi.github.Fork.Smart
- All Implemented Interfaces:
Fork,JsonPatchable,JsonReadable
- Enclosing interface:
- Fork
Smart Fork with extra features.
- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Fork
Fork.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneUrl()Get its clone url.Get its default branch.Get its description.intforks()Get its forks count.fullName()Get its full name.gitUrl()Get its git url.homeUrl()Get its home page.htmlUrl()Get its html url.jakarta.json.JsonObjectjson()Describe it in a JSON object.Get its mirror url.name()Get its name.intnumber()Fork id.intGet its open issues count.Get its organization.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.intsize()Get its size.sshUrl()Get its ssh url.intGet its stargazers count.svnUrl()Get its svn url.url()Get its URL.intwatchers()Get its watchers count.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
frk- Fork
-
-
Method Details
-
name
Get its name.- Returns:
- Name of fork
- Throws:
IOException- If there is any I/O problem
-
organization
Get its organization.- Returns:
- Organization
- Throws:
IOException- If there is any I/O problem
-
url
Get its URL.- Returns:
- URL of fork
- Throws:
IOException- If there is any I/O problem
-
fullName
Get its full name.- Returns:
- Full name of fork
- Throws:
IOException- If there is any I/O problem
-
description
Get its description.- Returns:
- Description of fork
- Throws:
IOException- If there is any I/O problem
-
htmlUrl
Get its html url.- Returns:
- Html url of fork
- Throws:
IOException- If there is any I/O problem
-
cloneUrl
Get its clone url.- Returns:
- Clone url of fork
- Throws:
IOException- If there is any I/O problem
-
gitUrl
Get its git url.- Returns:
- Git url of fork
- Throws:
IOException- If there is any I/O problem
-
sshUrl
Get its ssh url.- Returns:
- Ssh url of fork
- Throws:
IOException- If there is any I/O problem
-
svnUrl
Get its svn url.- Returns:
- Svn url of fork
- Throws:
IOException- If there is any I/O problem
-
mirrorUrl
Get its mirror url.- Returns:
- Mirror url of fork
- Throws:
IOException- If there is any I/O problem
-
homeUrl
Get its home page.- Returns:
- Url of home page of fork
- Throws:
IOException- If there is any I/O problem
-
forks
Get its forks count.- Returns:
- Forks count of fork
- Throws:
IOException- If there is any I/O problem
-
stargazers
Get its stargazers count.- Returns:
- Stargazers count of fork
- Throws:
IOException- If there is any I/O problem
-
watchers
Get its watchers count.- Returns:
- Watchers count of fork
- Throws:
IOException- If there is any I/O problem
-
size
Get its size.- Returns:
- Size of fork
- Throws:
IOException- If there is any I/O problem
-
defaultBranch
Get its default branch.- Returns:
- Default branch
- Throws:
IOException- If there is any I/O problem
-
openIssues
Get its open issues count.- Returns:
- Size of fork
- Throws:
IOException- If there is any I/O problem
-
number
public int number()Description copied from interface:ForkFork id. -
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
patch
Description copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-