org.dc.riot.lol.rx.model.staticdata.ItemDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lol-api-rxjava Show documentation
Show all versions of lol-api-rxjava Show documentation
Service library for League of Legends API
package org.dc.riot.lol.rx.model.staticdata;
import java.util.HashMap;
import java.util.Map;
/**
* This object contains item data.
*
* Inheritance
* Discussion
*
* @author Dc
* @since 1.0.0
* @see BasicDataDto
*/
public class ItemDto extends BasicDataDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private Map effect;
public ItemDto() {
super(true);
COUNT++;
}
/**
* Implementation note: might be null
.
*
* @return Effects.
*/
public Map getEffect() {
if (effect == null) {
return new HashMap<>();
}
return effect;
}
}