com.github.javaclub.configcenter.client.domain.ConfigKeysIncrEvent Maven / Gradle / Ivy
The newest version!
/*
* @(#)ConfigKeysIncrEvent.java 2021-8-23
*
* Copyright (c) 2021. All Rights Reserved.
*
*/
package com.github.javaclub.configcenter.client.domain;
import java.util.List;
import com.google.common.collect.Lists;
/**
* ConfigKeysIncrEvent
*
* @author Gerald Chen
* @version $Id: ConfigKeysIncrEvent.java 2021-8-23 18:34:41 Exp $
*/
public class ConfigKeysIncrEvent {
private List incrKeys;
private int appId;
public ConfigKeysIncrEvent() {
}
public ConfigKeysIncrEvent(int appId) {
this.appId = appId;
}
public boolean hasIncredKeys() {
return null != incrKeys && 0 < incrKeys.size();
}
public void addIncrKey(String key) {
if (null == incrKeys) {
incrKeys = Lists.newArrayList();
}
incrKeys.add(key);
}
public List getIncrKeys() {
return incrKeys;
}
public void setIncrKeys(List incrKeys) {
this.incrKeys = incrKeys;
}
public int getAppId() {
return appId;
}
public void setAppId(int appId) {
this.appId = appId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy