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:ServiceCapabilityReturn the "content" of this capability. The structure of the content vastly depends on thetypeof the capability.- Specified by:
getContentin classServiceCapability<List<Type>>- Returns:
- the content
-
get
Return theTypewith the specified id ornullif no such type exists.- Parameters:
id- the ID to find- Returns:
- the Type or
null
-
getDefault
Return the defaultType.- Specified by:
getDefaultin interfaceDefaultable<Type>- Returns:
- the default value
-
merge
Description copied from class:ServiceCapabilityMerge the content of this instance with the specified content.- Specified by:
mergein classServiceCapability<List<Type>>- Parameters:
otherContent- the content to merge- See Also:
-