Interface HasCode<T>
-
- Type Parameters:
T
- type of code
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
LanguageInfo
,TranslationInfo
- All Known Implementing Classes:
Language
,TextFormat
public interface HasCode<T> extends java.io.Serializable
Interface which indicates that class should have code.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description T
code()
Get code value.static <T,E extends HasCode<T>>
java.util.Optional<E>findByCode(java.util.Collection<E> collection, T code)
Find find correspondingHasCode
element from collection by code.
-