Package in.hocg.boot.utils
Class Rules<K>
- java.lang.Object
-
- in.hocg.boot.utils.Rules<K>
-
public class Rules<K> extends Object
Created by hocgin on 2021/5/31 email: hocgin@gmail.com- Author:
- hocgin
-
-
Constructor Summary
Constructors Constructor Description Rules()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K> Rules<K>create()Rules<K>defRule(Supplier<?> fs)<R> Optional<R>of(K args)Rules<K>rule(Function<K,Boolean> match, Supplier<?> fs)Rules<K>rule(K type, Supplier<?> fs)static <P> Supplier<P>Runnable(Runnable fun)static <P> Supplier<P>Supplier(Supplier<P> fun)
-
-
-
Method Detail
-
create
public static <K> Rules<K> create()
-
-