Package org.beangle.commons.lang.time
Class WeekState
- java.lang.Object
-
- org.beangle.commons.lang.time.WeekState
-
- All Implemented Interfaces:
Serializable,Comparable<WeekState>
public class WeekState extends Object implements Serializable, Comparable<WeekState>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WeekStatebitand(WeekState other)WeekStatebitor(WeekState other)WeekStatebitxor(WeekState other)intcompareTo(WeekState o)booleanequals(Object obj)intgetFirst()intgetLast()longgetValue()List<Integer>getWeekList()intgetWeeks()booleanisOccupied(int week)static WeekStateof(int weekIndex)static WeekStateof(int[] weekIndecies)static WeekStateof(List<Integer> weekIndecies)StringtoReverseString()StringtoString()
-
-
-
Field Detail
-
Zero
public static final WeekState Zero
-
value
public final long value
-
-
Constructor Detail
-
WeekState
public WeekState(long value)
-
WeekState
public WeekState(String value)
-
-
Method Detail
-
of
public static WeekState of(int weekIndex)
-
of
public static WeekState of(int[] weekIndecies)
-
compareTo
public int compareTo(WeekState o)
- Specified by:
compareToin interfaceComparable<WeekState>
-
getFirst
public int getFirst()
-
getLast
public int getLast()
-
getWeeks
public int getWeeks()
-
isOccupied
public boolean isOccupied(int week)
-
getValue
public long getValue()
-
toReverseString
public String toReverseString()
-
-