Interface CapacityType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
CapacityTypeImpl
public interface CapacityType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
capacityType xsd type-
Method Summary
Modifier and TypeMethodDescriptionIf not already created, a newdecrementerelement with the given value will be created.If not already created, a newincrementerelement with the given value will be created.Removes thedecrementerelementRemoves theincrementerelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
getOrCreateIncrementer
ExtensionType<CapacityType<T>> getOrCreateIncrementer()If not already created, a newincrementerelement with the given value will be created. Otherwise, the existingincrementerelement will be returned.- Returns:
- a new or existing instance of
ExtensionTypeinvalid input: '<'CapacityType>
-
removeIncrementer
CapacityType<T> removeIncrementer()Removes theincrementerelement- Returns:
- the current instance of
CapacityType
-
getOrCreateDecrementer
ExtensionType<CapacityType<T>> getOrCreateDecrementer()If not already created, a newdecrementerelement with the given value will be created. Otherwise, the existingdecrementerelement will be returned.- Returns:
- a new or existing instance of
ExtensionTypeinvalid input: '<'CapacityType>
-
removeDecrementer
CapacityType<T> removeDecrementer()Removes thedecrementerelement- Returns:
- the current instance of
CapacityType
-