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 URL
cloneUrl()
Get its clone url.String
defaultBranch()
Get its default branch.String
description()
Get its description.int
forks()
Get its forks count.String
fullName()
Get its full name.String
gitUrl()
Get its git url.URL
homeUrl()
Get its home page.URL
htmlUrl()
Get its html url.javax.json.JsonObject
json()
Describe it in a JSON object.String
mirrorUrl()
Get its mirror url.String
name()
Get its name.int
number()
Fork id.int
openIssues()
Get its open issues count.String
organization()
Get its organization.void
patch(javax.json.JsonObject json)
Patch using this JSON object.int
size()
Get its size.String
sshUrl()
Get its ssh url.int
stargazers()
Get its stargazers count.URL
svnUrl()
Get its svn url.URL
url()
Get its URL.int
watchers()
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 IOException
Get its forks count.- Returns:
- Forks count of fork
- Throws:
IOException
- If there is any I/O problem
-
stargazers
public int stargazers() throws IOException
Get its stargazers count.- Returns:
- Stargazers count of fork
- Throws:
IOException
- If there is any I/O problem
-
watchers
public int watchers() throws IOException
Get its watchers count.- Returns:
- Watchers count of fork
- Throws:
IOException
- If there is any I/O problem
-
size
public int size() throws IOException
Get 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 IOException
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:Fork
Fork id.
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
patch
public void patch(javax.json.JsonObject json) throws IOException
Description copied from interface:JsonPatchable
Patch using this JSON object.- Specified by:
patch
in interfaceJsonPatchable
- Parameters:
json
- JSON object- Throws:
IOException
- If there is any I/O problem
-
-