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

group.rober.base.detector.model.Detector Maven / Gradle / Ivy

The newest version!
package group.rober.base.detector.model;

import group.rober.base.detector.entity.DetectorPO;
import group.rober.runtime.kit.ListKit;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

public class Detector extends DetectorPO implements Serializable {

    @Transient
    List items = ListKit.newArrayList();

    public DetectorItem lookupItem(String itemCode){
        for(DetectorItem item : items){
            if(itemCode.equals(item.getItemCode())){
                return item;
            }
        }
        return null;
    }

    public List getItems() {
        return items;
    }

    public void setItems(List items) {
        this.items = items;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy