Class Wid


  • public class Wid
    extends java.lang.Object
    A representation class of a watch id, its execution time and a random UUID This class exists to be able to store several events from the same possible execution time and the same watch in the triggered store index or the history store One 'specialty' of this class is the handling of the underscore in the value. Nothing except the watchId should contain an underscore, otherwise this class will not be able to extract the proper watch id, when a a single string is handed over in its ctor This is also the reason why UUID.randomUUID() is used instead of UUIDs.base64UUID(), as the latter one contains underscores. Also this is not dependant on having time based uuids here, as the time is already included in the value
    • Constructor Summary

      Constructors 
      Constructor Description
      Wid​(java.lang.String value)  
      Wid​(java.lang.String watchId, org.joda.time.DateTime executionTime)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      java.lang.String value()  
      java.lang.String watchId()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Wid

        public Wid​(java.lang.String watchId,
                   org.joda.time.DateTime executionTime)
      • Wid

        public Wid​(java.lang.String value)
    • Method Detail

      • value

        public java.lang.String value()
      • watchId

        public java.lang.String watchId()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object