T
- the content typepublic abstract class ServiceCapability<T> extends Object implements Cloneable
type
.Modifier | Constructor and Description |
---|---|
protected |
ServiceCapability(String id,
ServiceCapabilityType type,
String title,
String description) |
Modifier and Type | Method and Description |
---|---|
abstract T |
getContent()
Return the "content" of this capability.
|
String |
getDescription() |
String |
getId() |
String |
getTitle() |
ServiceCapabilityType |
getType() |
void |
merge(ServiceCapability<T> other)
Merge this capability with the specified argument.
|
abstract void |
merge(T otherContent)
Merge the content of this instance with the specified content.
|
void |
setDescription(String description) |
void |
setTitle(String title) |
protected ServiceCapability(String id, ServiceCapabilityType type, String title, String description)
public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public String getId()
public ServiceCapabilityType getType()
public abstract T getContent()
type
of the capability.public abstract void merge(T otherContent)
otherContent
- the content to mergemerge(io.spring.initializr.metadata.ServiceCapability)
public void merge(ServiceCapability<T> other)
id
and type
). Sub-classes may merge
additional content.other
- the content to mergeCopyright © 2021 Pivotal Software, Inc.. All rights reserved.