Skip to content

Commit

Permalink
Improve code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfinocchiaro committed Sep 21, 2017
1 parent abd23ca commit baf7a50
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/main/java/cool/mqtt/hooks/QoS.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@

/**
* The <i>Quality of Service</i>.
* <p>
* {@code QoS} is an enum representing the 3 Quality of Service levels according
* to which the MQTT broker delivers Application Messages.
*
* <p>{@code QoS} is an enum representing the 3 Quality of Service levels according to which the
* MQTT broker delivers Application Messages.
*/
public enum QoS {

/**
* The singleton instance for <i>At most once</i> level. This has the
* numeric value of {@code 0}.
* The singleton instance for <i>At most once</i> level. This has the numeric value of {@code 0}.
*/
AT_MOST_ONCE(0),

/**
* The singleton instance for <i>At least once</i> level. This has the
* numeric value of {@code 1}.
* The singleton instance for <i>At least once</i> level. This has the numeric value of {@code 1}.
*/
AT_LEAST_ONCE(1),

/**
* The singleton instance for <i>Exactly once</i> level. This has the
* numeric value of {@code 2}.
* The singleton instance for <i>Exactly once</i> level. This has the numeric value of {@code 2}.
*/
EXACTLY_ONCE(2);

Expand All @@ -35,8 +32,8 @@ public enum QoS {
/**
* Gets the Quality of Service level {@code int} value.
*
* @return the Quality of Service level, from 0 ({@code AT_MOST_ONCE}) to 2
* ({@code EXACTLY_ONCE} once)
* @return the Quality of Service level, from 0 ({@code AT_MOST_ONCE}) to 2 ({@code EXACTLY_ONCE}
* once)
*/
public int getValue() {
return value;
Expand Down

0 comments on commit baf7a50

Please sign in to comment.