Package io.vavr

Class API.Match.Pattern0<T>

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The serial version UID for serialization.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Pattern0

        protected Pattern0()
        Creates a new Pattern0.

        This constructor is protected because Pattern0 is abstract and intended to be subclassed rather than instantiated directly.

    • Method Detail

      • any

        public static <T> API.Match.Pattern0<T> any()
        The greediest match, a catch-all
        Type Parameters:
        T - Class type that is matched by this pattern
        Returns:
        Pattern0
      • of

        public static <T> API.Match.Pattern0<T> of​(@NonNull java.lang.Class<? super T> type)
        Static factory for a API.Match.Pattern0 based on a Class
        Type Parameters:
        T - Class type matched by this pattern
        Parameters:
        type - Class to build the pattern from
        Returns:
        new Pattern0