psiprobe.model.jsp.Summary Maven / Gradle / Ivy
/*
* Licensed under the GPL License. You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
* WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE.
*/
package psiprobe.model.jsp;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* The Class Summary.
*/
public class Summary implements Serializable {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
/** The name. */
private String name;
/** The items. */
private Map items;
/** The out of date count. */
private int outOfDateCount;
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Sets the name.
*
* @param name the new name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the items.
*
* @return the items
*/
public Map getItems() {
return items == null ? Collections.emptyMap() : new HashMap<>(items);
}
/**
* Sets the items.
*
* @param items the items
*/
public void setItems(Map items) {
this.items = items == null ? Collections.emptyMap() : new HashMap<>(items);
}
/**
* Put the items.
*
* @param string the string
* @param item the item
*/
public void putItem(String string, Item item) {
if (items == null) {
items = new HashMap<>();
}
items.put(string, item);
}
/**
* Gets the out of date count.
*
* @return the out of date count
*/
public int getOutOfDateCount() {
return outOfDateCount;
}
/**
* Sets the out of date count.
*
* @param outOfDateCount the new out of date count
*/
public void setOutOfDateCount(int outOfDateCount) {
this.outOfDateCount = outOfDateCount;
}
}