Class MamaDateTimeHints


  • public class MamaDateTimeHints
    extends java.lang.Object
    Bit masks for hints.
    • 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 hints
      boolean 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 mask
      void setNoTimezone​(boolean set)
      Set or unset the NO_TIMEZONE bit.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MamaDateTimeHints

        public MamaDateTimeHints​(short hints)
        Create hints with the specified mask.
        Parameters:
        hints -
    • 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.