Interface ImageVariant
-
public interface ImageVariant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getName()
List<String>
getReplaces()
Returns the List of variants that should be replaced withgetName()
and an EMPTY List if no explicit items for replaces are configured.boolean
isFallback()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the variant name to use. This value is never
null
or blank (empty)
-
getReplaces
List<String> getReplaces()
Returns the List of variants that should be replaced withgetName()
and an EMPTY List if no explicit items for replaces are configured. When all variants need to be replaced by default, this List can return EMPTY list- Returns:
- the List of variants that should be replaced with
getName()
and an EMPTY List if no explicit items for replaces are configured
-
isFallback
boolean isFallback()
- Returns:
true
when the original variant should be shown when the variant forname
does not exist
-
-