Package com.wombat.mama
Class MamaDateTimeHints
- java.lang.Object
-
- com.wombat.mama.MamaDateTimeHints
-
public class MamaDateTimeHints extends java.lang.ObjectBit masks for hints.
-
-
Field Summary
Fields Modifier and Type Field Description static shortHAS_DATEstatic shortHAS_TIMEstatic shortNO_TIMEZONE
-
Constructor Summary
Constructors Constructor Description MamaDateTimeHints(short hints)Create hints with the specified mask.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetHints()Return the hints mask.booleanhasDate()Return true if HAS_DATE bit set.booleanhasHints(MamaDateTimeHints hints)Return true if mask matches supplied hintsbooleanhasNoTimeZone()Return true if no timezone bit set.booleanhasTime()Return true if has time bit set.voidsetHasDate(boolean set)Set or unset the HAS_DATE bit.voidsetHasTime(boolean set)Set or unset the HAS_TIME bit.voidsetHints(short hints)Set maskvoidsetNoTimezone(boolean set)Set or unset the NO_TIMEZONE bit.
-
-
-
Field Detail
-
HAS_DATE
public static final short HAS_DATE
- See Also:
- Constant Field Values
-
HAS_TIME
public static final short HAS_TIME
- See Also:
- Constant Field Values
-
NO_TIMEZONE
public static final short NO_TIMEZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHints
public short getHints()
Return the hints mask.- Returns:
- The mask.
-
hasHints
public boolean hasHints(MamaDateTimeHints hints)
Return true if mask matches supplied hints
-
hasDate
public boolean hasDate()
Return true if HAS_DATE bit set.
-
hasTime
public boolean hasTime()
Return true if has time bit set.
-
hasNoTimeZone
public boolean hasNoTimeZone()
Return true if no timezone bit set.
-
setHints
public void setHints(short hints)
Set mask
-
setHasTime
public void setHasTime(boolean set)
Set or unset the HAS_TIME bit.
-
setHasDate
public void setHasDate(boolean set)
Set or unset the HAS_DATE bit.
-
setNoTimezone
public void setNoTimezone(boolean set)
Set or unset the NO_TIMEZONE bit.
-
-