public static class

Field.Builder

extends Object
java.lang.Object
   ↳ com.urbanairship.wallet.Field.Builder

Class Overview

Builds the Field object.

Summary

Public Constructors
Builder()
Public Methods
Field build()
Builds the field.
Field.Builder setLabel(String label)
Sets the field's label.
Field.Builder setName(String name)
Sets the field's name.
Field.Builder setValue(int value)
Sets the field's value.
Field.Builder setValue(String value)
Sets the field's value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public Field build ()

Builds the field.

Returns
  • A field instance.
Throws
IllegalStateException if the name or both the value and label are missing.

public Field.Builder setLabel (String label)

Sets the field's label.

Parameters
label The field's label.
Returns
  • Builder object.

public Field.Builder setName (String name)

Sets the field's name.

Parameters
name The field's name.
Returns
  • Builder object.

public Field.Builder setValue (int value)

Sets the field's value.

Parameters
value The field's value.
Returns
  • Builder object.

public Field.Builder setValue (String value)

Sets the field's value.

Parameters
value The field's value.
Returns
  • Builder object.