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

org.dc.riot.lol.rx.model.staticdata.BlockItemDto Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy