public class UniversalProductCode extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UniversalProductCode.Builder
Class to build instances of
UniversalProductCode. |
| Constructor and Description |
|---|
UniversalProductCode()
Default constructor.
|
UniversalProductCode(UpcType type,
String code)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Getter for Code.
|
UpcType |
getType()
Getter for Type.
|
void |
setCode(String code)
Setter for Code.
|
void |
setType(UpcType type)
Setter for Type.
|
UniversalProductCode.Builder |
toBuilder()
Builds a new
UniversalProductCode.Builder object. |
String |
toString()
Converts this UniversalProductCode into string format.
|
public UpcType getType()
public void setType(UpcType type)
type - Value for UpcTypepublic String getCode()
public void setCode(String code)
code - Value for Stringpublic String toString()
public UniversalProductCode.Builder toBuilder()
UniversalProductCode.Builder object.
Creates the instance with the state of the current model.UniversalProductCode.Builder objectCopyright © 2025. All rights reserved.