Package io.spring.initializr.metadata
Class TypeCapability
java.lang.Object
io.spring.initializr.metadata.ServiceCapability<List<Type>>
io.spring.initializr.metadata.TypeCapability
- All Implemented Interfaces:
Defaultable<Type>
,Cloneable
An
action
capability.- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.spring.initializr.metadata.ServiceCapability
getDescription, getId, getTitle, getType, merge, setDescription, setTitle
-
Constructor Details
-
TypeCapability
public TypeCapability()
-
-
Method Details
-
getContent
Description copied from class:ServiceCapability
Return the "content" of this capability. The structure of the content vastly depends on thetype
of the capability.- Specified by:
getContent
in classServiceCapability<List<Type>>
- Returns:
- the content
-
get
Return theType
with the specified id ornull
if no such type exists.- Parameters:
id
- the ID to find- Returns:
- the Type or
null
-
getDefault
Return the defaultType
.- Specified by:
getDefault
in interfaceDefaultable<Type>
- Returns:
- the default value
-
merge
Description copied from class:ServiceCapability
Merge the content of this instance with the specified content.- Specified by:
merge
in classServiceCapability<List<Type>>
- Parameters:
otherContent
- the content to merge- See Also:
-