org.dc.riot.lol.rx.model.staticdata.BlockItemDto 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;
/**
* This object contains champion recommended block item data.
*
* @author Dc
* @since 1.0.0
*/
public class BlockItemDto {
private static long COUNT = 0;
public static long getInstanceCount() {
return COUNT;
}
private Integer count;
private Long id;
public BlockItemDto() {
COUNT++;
}
/**
* @return Count or 0
if not defined.
*/
public int getCount() {
if (count == null) {
return 0;
}
return count;
}
/**
* @return ID or -1
if not defined.
*/
public long getId() {
if (id == null) {
return -1;
}
return id;
}
}