Class UserId


  • public final class UserId
    extends java.lang.Object
    ID of a user. Unique with in a segment. Must match the regex `^[a-zA-Z0-9_.$#|@/:;=+'-]+$`.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()  
      boolean equals​(java.lang.Object obj)  
      protected void finalize()  
      java.lang.String getId()  
      int hashCode()
      This implementation calls native code, which means it's relatively slow.
      static UserId validate​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • validate

        public static UserId validate​(java.lang.String s)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getId

        public final java.lang.String getId()
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • hashCode

        public int hashCode()
        This implementation calls native code, which means it's relatively slow.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object