Package dev.cel.common.types
Class CelTypeProvider.CombinedCelTypeProvider
- java.lang.Object
-
- dev.cel.common.types.CelTypeProvider.CombinedCelTypeProvider
-
- All Implemented Interfaces:
CelTypeProvider
- Enclosing interface:
- CelTypeProvider
@Immutable public static final class CelTypeProvider.CombinedCelTypeProvider extends java.lang.Object implements CelTypeProvider
TheCombinedCelTypeProviderimplements theCelTypeProviderinterface by merging theCelTypeinstances supported by each together.If there is more than one
CelTypefor a given type, the first definition found is the one supported in theCombinedCelTypeProvider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.cel.common.types.CelTypeProvider
CelTypeProvider.CombinedCelTypeProvider
-
-
Constructor Summary
Constructors Constructor Description CombinedCelTypeProvider(com.google.common.collect.ImmutableList<CelTypeProvider> typeProviders)CombinedCelTypeProvider(CelTypeProvider first, CelTypeProvider second)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CelType>findType(java.lang.String typeName)Return theCelTypefor the giventypeNameif supported.com.google.common.collect.ImmutableCollection<CelType>types()Return the set ofCelTypeinstances supported by this provider.
-
-
-
Constructor Detail
-
CombinedCelTypeProvider
public CombinedCelTypeProvider(CelTypeProvider first, CelTypeProvider second)
-
CombinedCelTypeProvider
public CombinedCelTypeProvider(com.google.common.collect.ImmutableList<CelTypeProvider> typeProviders)
-
-
Method Detail
-
types
public com.google.common.collect.ImmutableCollection<CelType> types()
Description copied from interface:CelTypeProviderReturn the set ofCelTypeinstances supported by this provider.- Specified by:
typesin interfaceCelTypeProvider
-
findType
public java.util.Optional<CelType> findType(java.lang.String typeName)
Description copied from interface:CelTypeProviderReturn theCelTypefor the giventypeNameif supported.- Specified by:
findTypein interfaceCelTypeProvider
-
-