Skip to content

Commit ebb8ad2

Browse files
committed
Add alternative undefined season which some media has
1 parent 7318de2 commit ebb8ad2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

library/src/main/java/com/proxerme/library/parameters/SeasonParameter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515
public final class SeasonParameter {
1616

17+
public static final int UNSPECIFIED_ALT = 0;
1718
public static final int WINTER = 1;
1819
public static final int SPRING = 2;
1920
public static final int SUMMER = 3;
@@ -24,9 +25,9 @@ private SeasonParameter() {
2425
}
2526

2627
/**
27-
* An annotation that represents the possible season.
28+
* An annotation that represents the possible seasons.
2829
*/
29-
@IntDef({SPRING, SUMMER, AUTUMN, WINTER, UNSPECIFIED})
30+
@IntDef({UNSPECIFIED_ALT, SPRING, SUMMER, AUTUMN, WINTER, UNSPECIFIED})
3031
@Retention(value = RetentionPolicy.SOURCE)
3132
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
3233
public @interface SeasonConstraint {

0 commit comments

Comments
 (0)