Skip to content

Commit

Permalink
Clarify documentation of Period.compareTo
Browse files Browse the repository at this point in the history
The definition of "greater" was ambiguous (longer period?  later start?
later end?); this documentation improves it.
  • Loading branch information
mernst committed Apr 16, 2016
1 parent e6e26e7 commit 9dec808
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/fortuna/ical4j/model/Period.java
Expand Up @@ -313,6 +313,7 @@ public final String toString() {

/**
* Compares the specified period with this period.
* First, compare the start dates. If they are the same, compare the end dates.
*
* @param arg0 a period to compare with this one
* @return a postive value if this period is greater, negative if the other is
Expand Down

0 comments on commit 9dec808

Please sign in to comment.