All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jbock.convert.match.Matcher Maven / Gradle / Ivy

There is a newer version: 5.18
Show newest version
package net.jbock.convert.match;

import io.jbock.simple.Inject;
import io.jbock.simple.Named;
import net.jbock.annotated.Item;
import net.jbock.common.TypeTool;

import java.util.Optional;

public abstract class Matcher {

    abstract 
    Optional> tryMatch(
            M parameter);

    @Inject
    @Named("list")
    public static Matcher listMatcher(TypeTool tool) {
        return new ListMatcher(tool);
    }

    @Inject
    @Named("optional")
    public static Matcher optionalMatcher(TypeTool tool) {
        return new OptionalMatcher(tool);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy