Class Id

  • All Implemented Interfaces:
    StringValue, java.io.Serializable, java.lang.Comparable<Id>

    @Immutable
    public class Id
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<Id>, StringValue
    An opaque wrapper for identifiers.
    Author:
    Fabrizio Giudici
    See Also:
    Serialized Form
    Status: stable API
    • Constructor Summary

      Constructors 
      Constructor Description
      Id()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Id other)
      static Id of​(java.lang.Object value)  
      java.lang.String stringValue()
      Returns the String value of this object.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

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

      • Id

        public Id()
    • Method Detail

      • of

        @Nonnull
        public static Id of​(@Nonnull
                            java.lang.Object value)
        Since:
        3.2-ALPHA-2
      • stringValue

        @Nonnull
        public java.lang.String stringValue()
        Returns the String value of this object.
        Specified by:
        stringValue in interface StringValue
        Returns:
        the string
      • compareTo

        public int compareTo​(Id other)
        Specified by:
        compareTo in interface java.lang.Comparable<Id>
      • toString

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