Product
public abstract class Product extends Object
Constructors
Name | Description |
---|---|
public Product()
|
Methods
id
public abstract String id()
Unique identifier of the product.
ReturnValue
Name | Description |
---|---|
String
|
name
public abstract String name()
Name of the product.
ReturnValue
Name | Description |
---|---|
String
|
image
public abstract String image()
Image of the product.
ReturnValue
Name | Description |
---|---|
String
|
capabilities
public abstract List<Capability> capabilities()
List of supported capabilities for this product.
ReturnValue
Name | Description |
---|---|
List<Capability>
|
of
public static Product of(String id, String name, String image, List<Capability> capabilities)
Parameters
Name | Description |
---|---|
String id
|
|
String name
|
|
String image
|
|
List<Capability> capabilities
|
ReturnValue
Name | Description |
---|---|
Product
|
Defines Product type of the Gear.