Package com.jcabi.github
Class Fork.Smart
- java.lang.Object
-
- com.jcabi.github.Fork.Smart
-
- All Implemented Interfaces:
Fork,JsonPatchable,JsonReadable
- Enclosing interface:
- Fork
@Immutable @Loggable(1) public static final class Fork.Smart extends Object implements Fork
Smart Fork with extra features.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Fork
Fork.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLcloneUrl()Get its clone url.StringdefaultBranch()Get its default branch.Stringdescription()Get its description.intforks()Get its forks count.StringfullName()Get its full name.StringgitUrl()Get its git url.URLhomeUrl()Get its home page.URLhtmlUrl()Get its html url.javax.json.JsonObjectjson()Describe it in a JSON object.StringmirrorUrl()Get its mirror url.Stringname()Get its name.intnumber()Fork id.intopenIssues()Get its open issues count.Stringorganization()Get its organization.voidpatch(javax.json.JsonObject json)Patch using this JSON object.intsize()Get its size.StringsshUrl()Get its ssh url.intstargazers()Get its stargazers count.URLsvnUrl()Get its svn url.URLurl()Get its URL.intwatchers()Get its watchers count.
-
-
-
Constructor Detail
-
Smart
public Smart(Fork frk)
Public ctor.- Parameters:
frk- Fork
-
-
Method Detail
-
name
public String name() throws IOException
Get its name.- Returns:
- Name of fork
- Throws:
IOException- If there is any I/O problem
-
organization
public String organization() throws IOException
Get its organization.- Returns:
- Organization
- Throws:
IOException- If there is any I/O problem
-
url
public URL url() throws IOException
Get its URL.- Returns:
- URL of fork
- Throws:
IOException- If there is any I/O problem
-
fullName
public String fullName() throws IOException
Get its full name.- Returns:
- Full name of fork
- Throws:
IOException- If there is any I/O problem
-
description
public String description() throws IOException
Get its description.- Returns:
- Description of fork
- Throws:
IOException- If there is any I/O problem
-
htmlUrl
public URL htmlUrl() throws IOException
Get its html url.- Returns:
- Html url of fork
- Throws:
IOException- If there is any I/O problem
-
cloneUrl
public URL cloneUrl() throws IOException
Get its clone url.- Returns:
- Clone url of fork
- Throws:
IOException- If there is any I/O problem
-
gitUrl
public String gitUrl() throws IOException
Get its git url.- Returns:
- Git url of fork
- Throws:
IOException- If there is any I/O problem
-
sshUrl
public String sshUrl() throws IOException
Get its ssh url.- Returns:
- Ssh url of fork
- Throws:
IOException- If there is any I/O problem
-
svnUrl
public URL svnUrl() throws IOException
Get its svn url.- Returns:
- Svn url of fork
- Throws:
IOException- If there is any I/O problem
-
mirrorUrl
public String mirrorUrl() throws IOException
Get its mirror url.- Returns:
- Mirror url of fork
- Throws:
IOException- If there is any I/O problem
-
homeUrl
public URL homeUrl() throws IOException
Get its home page.- Returns:
- Url of home page of fork
- Throws:
IOException- If there is any I/O problem
-
forks
public int forks() throws IOExceptionGet its forks count.- Returns:
- Forks count of fork
- Throws:
IOException- If there is any I/O problem
-
stargazers
public int stargazers() throws IOExceptionGet its stargazers count.- Returns:
- Stargazers count of fork
- Throws:
IOException- If there is any I/O problem
-
watchers
public int watchers() throws IOExceptionGet its watchers count.- Returns:
- Watchers count of fork
- Throws:
IOException- If there is any I/O problem
-
size
public int size() throws IOExceptionGet its size.- Returns:
- Size of fork
- Throws:
IOException- If there is any I/O problem
-
defaultBranch
public String defaultBranch() throws IOException
Get its default branch.- Returns:
- Default branch
- Throws:
IOException- If there is any I/O problem
-
openIssues
public int openIssues() throws IOExceptionGet 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
public javax.json.JsonObject json() throws IOExceptionDescription 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
public void patch(javax.json.JsonObject json) throws IOExceptionDescription 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
-
-