setAttribute

open fun setAttribute(@Size(min = 1, max = 1024) @NonNull key: String, @Size(min = 1, max = 1024) @NonNull string: String): AttributeEditor

Sets a string attribute.

Return

The AttributeEditor.

Parameters

key

The attribute key greater than one character and less than 1024 characters in length.

string

The attribute string greater than one character and less than 1024 characters in length.


open fun setAttribute(@Size(min = 1, max = 1024) @NonNull key: String, number: Int): AttributeEditor

Sets an integer number attribute.

Return

The AttributeEditor.

Parameters

key

The attribute key greater than one character and less than 1024 characters in length.

number

The number attribute.


open fun setAttribute(@Size(min = 1, max = 1024) @NonNull key: String, number: Long): AttributeEditor

Sets a long number attribute.

Return

The AttributeEditor.

Parameters

key

The attribute key greater than one character and less than 1024 characters in length.

number

The number attribute.


open fun setAttribute(@Size(min = 1, max = 1024) @NonNull key: String, number: Float): AttributeEditor

Sets a float number attribute.

Return

The AttributeEditor.

Parameters

key

The attribute key greater than one character and less than 1024 characters in length.

number

The number attribute.

Throws

if the number is NaN or infinite.


open fun setAttribute(@Size(min = 1, max = 1024) @NonNull key: String, number: Double): AttributeEditor

Sets a double number attribute.

Return

The AttributeEditor.

Parameters

key

The attribute key greater than one character and less than 1024 characters in length.

number

The number attribute.

Throws

if the number is NaN or infinite.


open fun setAttribute(@Size(min = 1, max = 1024) @NonNull key: String, @NonNull date: Date): AttributeEditor

Sets a date attribute.

Return

The AttributeEditor.

Parameters

key

The attribute key greater than one character and less than 1024 characters in length.

date

The date attribute.