Interface ICommonSource<T extends java.lang.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 java.lang.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetDefault()Get the default value for the EnumTgetFromString(java.lang.String s)Returns the source category from the given category string.
-
-
-
Method Detail
-
getDefault
T getDefault()
Get the default value for the Enum- Returns:
- The default value
-
getFromString
T getFromString(java.lang.String s)
Returns the source category from the given category string.- Parameters:
s- The category string- Returns:
- the source category matching the given category string
-
-