Class CelTypeProvider.CombinedCelTypeProvider

  • All Implemented Interfaces:
    CelTypeProvider
    Enclosing interface:
    CelTypeProvider

    @Immutable
    public static final class CelTypeProvider.CombinedCelTypeProvider
    extends java.lang.Object
    implements CelTypeProvider
    The CombinedCelTypeProvider implements the CelTypeProvider interface by merging the CelType instances supported by each together.

    If there is more than one CelType for a given type, the first definition found is the one supported in the CombinedCelTypeProvider.

    • Constructor Detail

      • 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: CelTypeProvider
        Return the set of CelType instances supported by this provider.
        Specified by:
        types in interface CelTypeProvider
      • findType

        public java.util.Optional<CelType> findType​(java.lang.String typeName)
        Description copied from interface: CelTypeProvider
        Return the CelType for the given typeName if supported.
        Specified by:
        findType in interface CelTypeProvider