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

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

    private BlockItemDto[] items;
    private Boolean recMath;
    private String type;
    
    public BlockDto() {
    	COUNT++;
    }

    /**
     * @return Items.
     */
    public BlockItemDto[] getItems() {
    	if (items == null) {
    		return new BlockItemDto[0];
    	}

        return items;
    }

    /**
     * @return Is rec math or false if not defined.
     */
    public boolean isRecMath() {
    	if (recMath == null) {
    		return false;
    	}

        return recMath.booleanValue();
    }

    /**
     * Implementation note: it is OK for this value
     * to be null.
     * 
     * @return Type.
     */
    public String getType() {
        return type;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy