@Immutable public interface Milestone extends Comparable<Milestone>, JsonReadable, JsonPatchable
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(); }
Modifier and Type | Interface and Description |
---|---|
static class |
Milestone.Smart
Smart Milestone with extra features.
|
Modifier and Type | Field and Description |
---|---|
static String |
CLOSED_STATE
Milestone state.
|
static String |
OPEN_STATE
Milestone state.
|
Modifier and Type | Method and Description |
---|---|
int |
number()
Get its number.
|
Repo |
repo()
Repository we're in.
|
compareTo
json
patch
static final String OPEN_STATE
static final String CLOSED_STATE
Copyright © 2012–2014 jcabi.com. All rights reserved.