Interface ICommonSource<T extends Enum<T>>
- Type Parameters:
T- The enum type
- All Known Subinterfaces:
ISourceCategory<T>,ISourceType<T>
- All Known Implementing Classes:
ImageryInfo.ImageryCategory,ImageryInfo.ImageryType
public interface ICommonSource<T extends Enum<T>>
This interface is used to ensure that a class can get a enum from a string.
For various reasons, the fromString method cannot be implemented statically.
- Since:
- 16545
-
Method Summary
Modifier and TypeMethodDescriptionGet the default value for the EnumReturns the source category from the given category string.
-
Method Details
-
getDefault
T getDefault()Get the default value for the Enum- Returns:
- The default value
-
getFromString
Returns the source category from the given category string.- Parameters:
s- The category string- Returns:
- the source category matching the given category string
-