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

com.github.bingoohuang.sqltrigger.TriggerBeanVo Maven / Gradle / Ivy

The newest version!
package com.github.bingoohuang.sqltrigger;

import com.google.common.collect.Lists;
import lombok.Data;

import java.lang.reflect.Method;
import java.util.List;
import java.util.stream.Collectors;

@Data
public class TriggerBeanVo {
    private final List items = Lists.newArrayList();

    public void add(TriggerType type, Method method) {
        items.add(new TriggerBeanItem(type, method));
    }

    public List filter(TriggerType triggerType) {
        return items.stream().filter(x -> x.getType() == triggerType).collect(Collectors.toList());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy