Class Id

    • Constructor Detail

      • Id

        public Id​()
        sets with empty value as id=""
        Since:
        1.0.0
      • Id

        public Id​(java.lang.String value)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • Id

        public Id​(java.util.UUID uuid)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • Id

        public Id​(int value)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • Id

        public Id​(float value)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • Id

        public Id​(long value)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • Id

        public Id​(double value)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
    • Method Detail

      • init

        protected void init​()
        invokes only once per object
        Since:
        1.0.0
      • setValue

        public void setValue​(java.lang.String id)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • setValue

        public void setValue​(int id)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • setValue

        public void setValue​(long id)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • setValue

        public void setValue​(float id)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • setValue

        public void setValue​(double id)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • setValue

        public void setValue​(java.util.UUID uuid)
        value for the id attribute.
        Parameters:
        id -
        Since:
        1.0.0
      • getValue

        public java.lang.String getValue​()
        Returns:
        the value for the attribute set
        Since:
        1.0.0
      • getUuid

        public java.util.UUID getUuid​()
        Returns:
        the UUID set by Id#setValue(UUID), Id#setUuid(UUID) or Id#Id(UUID).
        Since:
        1.0.0
      • setUuid

        public void setUuid​(java.util.UUID uuid)
        To set UUID as id value.
        Parameters:
        uuid - the UUID object
        Since:
        1.0.0