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
-
Field Summary
-
Constructor Summary
-
Method Summary
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 Details
-
Zero
-
value
public final long value
-
-
Constructor Details
-
WeekState
public WeekState(long value) -
WeekState
-
-
Method Details
-
of
-
of
-
of
-
compareTo
- Specified by:
compareToin interfaceComparable<WeekState>
-
getFirst
public int getFirst() -
getLast
public int getLast() -
getWeeks
public int getWeeks() -
getWeekList
-
isOccupied
public boolean isOccupied(int week) -
getValue
public long getValue() -
equals
-
bitand
-
bitor
-
bitxor
-
toString
-
toReverseString
-