Package com.wombat.mama
Class MamaDateTimeHints
- java.lang.Object
-
- com.wombat.mama.MamaDateTimeHints
-
public class MamaDateTimeHints extends java.lang.Object
Bit masks for hints.
-
-
Field Summary
Fields Modifier and Type Field Description static short
HAS_DATE
static short
HAS_TIME
static short
NO_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 short
getHints()
Return the hints mask.boolean
hasDate()
Return true if HAS_DATE bit set.boolean
hasHints(MamaDateTimeHints hints)
Return true if mask matches supplied hintsboolean
hasNoTimeZone()
Return true if no timezone bit set.boolean
hasTime()
Return true if has time bit set.void
setHasDate(boolean set)
Set or unset the HAS_DATE bit.void
setHasTime(boolean set)
Set or unset the HAS_TIME bit.void
setHints(short hints)
Set maskvoid
setNoTimezone(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.
-
-