Class DispatchingDocumentFactory.StringBasedDispatchingStrategy

    • Constructor Detail

      • StringBasedDispatchingStrategy

        public StringBasedDispatchingStrategy​(Enum<?> key,
                                              Object2IntMap<String> value)
        The strategy works as follows: the property named key is resolved; if this property is not set, the default return value of value is returned. Otherwise, its value is compared, using the equals, method with the elements of the value set, and the corresponding integer is returned.
        Parameters:
        key - the key to be resolved.
        value - the map of values.