Package org.incendo.cloud.caption
Class ConstantCaptionProvider<C>
java.lang.Object
org.incendo.cloud.caption.ConstantCaptionProvider<C>
- All Implemented Interfaces:
CaptionProvider<C>
- Direct Known Subclasses:
ImmutableConstantCaptionProvider
@Immutable
@API(status=STABLE)
public abstract class ConstantCaptionProvider<C>
extends Object
implements CaptionProvider<C>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaptions()Returns all recognized captions and their corresponding constant values.Returns the value of the givencaptionfor the givenrecipient, if it recognized by this provider.
-
Constructor Details
-
ConstantCaptionProvider
public ConstantCaptionProvider()
-
-
Method Details
-
captions
Returns all recognized captions and their corresponding constant values.- Returns:
- the captions
-
provide
Description copied from interface:CaptionProviderReturns the value of the givencaptionfor the givenrecipient, if it recognized by this provider.- Specified by:
providein interfaceCaptionProvider<C>- Parameters:
caption- the caption keyrecipient- the recipient- Returns:
- the caption, or
null
-