Package com.jcabi.github
Class Milestone.Smart
java.lang.Object
com.jcabi.github.Milestone.Smart
- All Implemented Interfaces:
JsonPatchable,JsonReadable,Milestone,Comparable<Milestone>
- Enclosing interface:
- Milestone
@Immutable
@Loggable(1)
public static final class Milestone.Smart
extends Object
implements Milestone
Smart Milestone with extra features.
- Since:
- 0.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Milestone
Milestone.Smart -
Field Summary
Fields inherited from interface com.jcabi.github.Milestone
CLOSED_STATE, OPEN_STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close it (make sure it's closed).intGet number of closed issues.intWhen this milestone was created.creator()Get its creator.Get its description.voiddescription(String description) Change its description.dueOn()The milestone due date.voidChange milestone due date.booleanisOpen()Is it open?jakarta.json.JsonObjectjson()Describe it in a JSON object.intnumber()Get its number.voidopen()Open it (make sure it's open).intGet number of open issues.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.repo()Repository we're in.state()Get its state.voidChange its state.title()Get its title.voidChange its title.url()Get its URL.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
mls- Issue
-
-
Method Details
-
creator
Get its creator.- Returns:
- Creator of milestone (who submitted it)
- Throws:
IOException- If there is any I/O problem
-
isOpen
Is it open?- Returns:
- TRUE if it's open
- Throws:
IOException- If there is any I/O problem
-
open
Open it (make sure it's open).- Throws:
IOException- If there is any I/O problem
-
close
Close it (make sure it's closed).- Throws:
IOException- If there is any I/O problem
-
state
Get its state.- Returns:
- State of milestone
- Throws:
IOException- If there is any I/O problem
-
state
Change its state.- Parameters:
state- State of milestone- Throws:
IOException- If there is any I/O problem
-
title
Get its title.- Returns:
- Title of milestone
- Throws:
IOException- If there is any I/O problem
-
title
Change its title.- Parameters:
title- Title of milestone- Throws:
IOException- If there is any I/O problem
-
description
Get its description.- Returns:
- Title of milestone
- Throws:
IOException- If there is any I/O problem
-
description
Change its description.- Parameters:
description- Description of milestone- Throws:
IOException- If there is any I/O problem
-
url
Get its URL.- Returns:
- URL of milestone
- Throws:
IOException- If there is any I/O problem
-
createdAt
When this milestone was created.- Returns:
- Date of creation
- Throws:
IOException- If there is any I/O problem
-
dueOn
The milestone due date.- Returns:
- The milestone due date
- Throws:
IOException- If there is any I/O problem
-
dueOn
Change milestone due date.- Parameters:
dueon- New milestone due date- Throws:
IOException- If there is any I/O problem
-
openIssues
Get number of open issues.- Returns:
- Number of open issues
- Throws:
IOException- If there is any I/O problem
-
closedIssues
Get number of closed issues.- Returns:
- Number of closed issues
- Throws:
IOException- If there is any I/O problem
-
repo
Description copied from interface:MilestoneRepository we're in. -
number
public int number()Description copied from interface:MilestoneGet its number. -
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
-
compareTo
- Specified by:
compareToin interfaceComparable<Milestone>
-