Skip to content

Commit

Permalink
Issue.Tool#isOpen()
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 12, 2013
1 parent 712346a commit 8851c2c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/com/jcabi/github/Issue.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,26 @@ final class Tool {
public Tool(final Issue iss) {
this.issue = iss;
}
/**
* Is it open?
* @return TRUE if it's open
*/
public boolean isOpen() {
// @checkstyle MultipleStringLiterals (1 line)
return "open".equals(this.state());
}
/**
* Open it (make sure it's open).
*/
public void open() {
this.state("open");
}
/**
* Close it (make sure it's closed).
*/
public void close() {
this.state("closed");
}
/**
* Get its state.
* @return State of issue
Expand Down

0 comments on commit 8851c2c

Please sign in to comment.