Class PropertyBuildersHelper

    • Method Detail

      • get

        public static <T> T get​(Object input,
                                Object registry,
                                Function<PropertyMetadata,​T> factory)
        Type Parameters:
        T - type of result.
        Parameters:
        input - the input value.
        registry - the potential Function to get the result from the given input.
        factory - the Supplier factory to create the result if not provided by inputFunction.
        Returns:
        the result.
      • accept

        public static <T> T accept​(T object,
                                   Object consumer)
        Type Parameters:
        T - type of object.
        Parameters:
        object - the object to accept.
        consumer - the object that may implement Consumer to accept the given object.
        Returns:
        the given object.