Package com.jcabi.github
Interface Milestone
-
- All Superinterfaces:
Comparable<Milestone>
,JsonPatchable
,JsonReadable
- All Known Implementing Classes:
Milestone.Smart
@Immutable public interface Milestone extends Comparable<Milestone>, JsonReadable, JsonPatchable
Github Milestone.Use a supplementary "smart" decorator to get other properties from an milestone, for example:
Milestone.Smart milestone = new Milestone.Smart(origin); if (milestone.isOpen()) { milestone.close(); }
- Since:
- 0.7
- Version:
- $Id: 586da6101d688a2fc82b3405aaef661a06dcbb57 $
- Author:
- Paul Polishchuk (ppol@ua.fm)
- See Also:
- Milestones API
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Milestone.Smart
Smart Milestone with extra features.
-
Field Summary
Fields Modifier and Type Field Description static String
CLOSED_STATE
Milestone state.static String
OPEN_STATE
Milestone state.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
number()
Get its number.Repo
repo()
Repository we're in.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.jcabi.github.JsonPatchable
patch
-
Methods inherited from interface com.jcabi.github.JsonReadable
json
-
-
-
-
Field Detail
-
OPEN_STATE
static final String OPEN_STATE
Milestone state.- See Also:
- Constant Field Values
-
CLOSED_STATE
static final String CLOSED_STATE
Milestone state.- See Also:
- Constant Field Values
-
-
Method Detail
-
repo
Repo repo()
Repository we're in.- Returns:
- Repo
-
number
int number()
Get its number.- Returns:
- Milestone number
-
-