public class DayByNameAndRank extends Object
| Constructor and Description |
|---|
DayByNameAndRank(DayOfWeek day,
int rank)
Construct day definition for the given day of week and rank.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRank(int rank,
Resolution unit)
Verify the validity of the rank for the given resolution.
|
boolean |
equals(Object obj) |
DayOfWeek |
getDayOfWeek()
Return the day of week.
|
protected int |
getMaxRank(Resolution unit)
Return the maximum rank even if it is not always achievable.
|
int |
getRank()
Return the rank.
|
int |
hashCode() |
String |
toString() |
public DayByNameAndRank(DayOfWeek day, int rank)
day - non-null day of weekrank - a non-zero number in [-5, 5] or [-53, 53] depending on the contextprotected int getMaxRank(Resolution unit) throws T2Exception
unit - the resolutionT2Exceptionprotected void checkRank(int rank,
Resolution unit)
throws T2Exception
rank - a numberunit - a non-null resolutionT2Exceptionpublic DayOfWeek getDayOfWeek()
public int getRank()
Copyright © 2017. All rights reserved.