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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Smart Milestone with extra features.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Milestone state.
    static final String
    Milestone state.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get its number.
    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 Details

  • Method Details

    • repo

      Repo repo()
      Repository we're in.
      Returns:
      Repo
    • number

      int number()
      Get its number.
      Returns:
      Milestone number