@Immutable @Loggable(value=1) public static final class Milestone.Smart extends Object implements Milestone
Milestone.SmartCLOSED_STATE, OPEN_STATE| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close it (make sure it's closed).
|
int |
closedIssues()
Get number of closed issues.
|
int |
compareTo(Milestone obj) |
Date |
createdAt()
When this milestone was created.
|
User |
creator()
Get its creator.
|
String |
description()
Get its description.
|
void |
description(String description)
Change its description.
|
Date |
dueOn()
The milestone due date.
|
void |
dueOn(Date dueon)
Change milestone due date.
|
boolean |
isOpen()
Is it open?
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
int |
number()
Get its number.
|
void |
open()
Open it (make sure it's open).
|
int |
openIssues()
Get number of open issues.
|
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 title.
|
void |
title(String title)
Change its title.
|
URL |
url()
Get its URL.
|
public Smart(Milestone mls)
mls - Issuepublic User creator() throws IOException
IOException - If there is any I/O problempublic boolean isOpen()
throws IOException
IOException - If there is any I/O problempublic void open()
throws IOException
IOException - If there is any I/O problempublic void close()
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 milestoneIOException - If there is any I/O problempublic String title() throws IOException
IOException - If there is any I/O problempublic void title(String title) throws IOException
title - Title of milestoneIOException - If there is any I/O problempublic String description() throws IOException
IOException - If there is any I/O problempublic void description(String description) throws IOException
description - Description of milestoneIOException - If there is any I/O problempublic URL url() throws IOException
IOException - If there is any I/O problempublic Date createdAt() throws IOException
IOException - If there is any I/O problempublic Date dueOn() throws IOException
IOException - If there is any I/O problempublic void dueOn(Date dueon) throws IOException
dueon - New milestone due dateIOException - If there is any I/O problempublic int openIssues()
throws IOException
IOException - If there is any I/O problempublic int closedIssues()
throws IOException
IOException - If there is any I/O problempublic int number()
Milestonepublic 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(Milestone obj)
compareTo in interface Comparable<Milestone>Copyright © 2012–2018 jcabi.com. All rights reserved.