All Implemented Interfaces:
TagBase, GlobalAttributable, Serializable, Cloneable

public class Id extends AbstractAttribute implements GlobalAttributable
See Also:
  • Constructor Details

    • Id

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

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

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

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

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

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

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

    • init

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

      public void setValue(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(UUID uuid)
      value for the id attribute.
      Parameters:
      uuid -
      Since:
      1.0.0
    • getValue

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

      public 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(UUID uuid)
      To set UUID as id value.
      Parameters:
      uuid - the UUID object
      Since:
      1.0.0