Package com.sinch.sdk.core.utils
Class EnumSupportDynamic<T,E extends EnumDynamic<T,E>>
- java.lang.Object
-
- com.sinch.sdk.core.utils.EnumSupportDynamic<T,E>
-
public final class EnumSupportDynamic<T,E extends EnumDynamic<T,E>> extends Object
Utility class to manage extendable enumeration set Used to define a known set of value but enable to extend it dynamically Typical use case: being able to send and/or receive values not yet defined at SDK version release
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)Efrom(T value)List<E>fromValues(Collection<T> values)StringtoComparableValue(Object o)TvalueOf(E e)Stream<E>values()List<T>valuesOf(Collection<E> values)
-
-
-
Method Detail
-
valuesOf
public List<T> valuesOf(Collection<E> values)
-
fromValues
public List<E> fromValues(Collection<T> values)
-
-