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

org.dc.riot.lol.rx.model.staticdata.MasteryTreeItemDto 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 mastery tree item data.`
 * 
 * @author Dc
 * @since 1.0.0
 */
public class MasteryTreeItemDto {
	private static long COUNT = 0;
	public static long getInstanceCount() {
		return COUNT;
	}

    private Long masteryId;
    private String prereq;
    
    public MasteryTreeItemDto() {
    	COUNT++;
    }

    /**
     * @return Mastery ID or -1 if not defined.
     */
    public long getMasteryId() {
    	if (masteryId == null) {
    		return -1;
    	}

        return masteryId.longValue();
    }

    /**
     * @return Prerequisite.
     */
    public String getPrereq() {
        return prereq;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy