@Immutable @Loggable(value=1) public static final class Pull.Smart extends Object implements Pull
Pull.Smart| Constructor and Description |
|---|
Pull.Smart(Pull pll)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
body()
Get its title.
|
void |
body(String text)
Change its body.
|
Date |
closedAt()
When this pull request was closed.
|
Iterable<Commit> |
commits()
Get all commits of the pull request.
|
int |
compareTo(Pull obj) |
Date |
createdAt()
When this pull request was created.
|
Iterable<javax.json.JsonObject> |
files()
List all files of the pull request.
|
URL |
htmlUrl()
Get its HTML URL.
|
boolean |
isOpen()
Is it open?
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
void |
merge(String msg)
Merge it.
|
Date |
mergedAt()
When this pull request was merged.
|
int |
number()
Get its number.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
Repo |
repo()
Repository we're in.
|
String |
state()
Get its state.
|
void |
state(String state)
Change its state.
|
String |
title()
Get its body.
|
void |
title(String text)
Change its state.
|
Date |
updatedAt()
When this pull request was updated.
|
URL |
url()
Get its URL.
|
public Pull.Smart(Pull pll)
pll - Pull requestpublic boolean isOpen()
throws IOException
IOException - If there is any I/O problempublic String state() throws IOException
IOException - If there is any I/O problempublic void state(String state) throws IOException
state - State of pull requestIOException - If there is any I/O problempublic String title() throws IOException
IOException - If there is any I/O problempublic void title(String text) throws IOException
text - Text of pull requestIOException - If there is any I/O problempublic String body() throws IOException
IOException - If there is any I/O problempublic void body(String text) throws IOException
text - Body of pull requestIOException - If there is any I/O problempublic URL url() throws IOException
IOException - If there is any I/O problempublic URL htmlUrl() throws IOException
IOException - If there is any I/O problempublic Date createdAt() throws IOException
IOException - If there is any I/O problempublic Date updatedAt() throws IOException
IOException - If there is any I/O problempublic Date closedAt() throws IOException
IOException - If there is any I/O problempublic Date mergedAt() throws IOException
IOException - If there is any I/O problempublic int number()
Pullpublic Iterable<Commit> commits() throws IOException
Pullcommits in interface PullIOException - If there is any I/O problempublic Iterable<javax.json.JsonObject> files() throws IOException
Pullfiles in interface PullIOException - If there is any I/O problempublic void merge(String msg) throws IOException
Pullmerge in interface Pullmsg - Commit messageIOException - If there is any I/O problempublic javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problempublic void patch(javax.json.JsonObject json)
throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problempublic int compareTo(Pull obj)
compareTo in interface Comparable<Pull>Copyright © 2012–2014 jcabi.com. All rights reserved.