Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.staticdata;
 
 
     private static final long serialVersionUID = -966690596010664123L;
     private Item item;

    

Parameters:
data the underlying dto
    public BlockItem(final com.robrua.orianna.type.dto.staticdata.BlockItem data) {
        super(datacom.robrua.orianna.type.dto.staticdata.BlockItem.class);
    }

    
Count

Returns:
count
    public int getCount() {
        return super.getInteger(.getCount());
    }

    
Item

Returns:
item
    public Item getItem() {
        if( != null) {
            return ;
        }
        final Integer i = .getId();
        if(i == null) {
            throw new MissingDataException("Item ID is null.");
        }
         = RiotAPI.getItem(i.longValue());
        return ;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "BlockItem (" + getItem() + " x " + getCount() + ")";
    }
New to GrepCode? Check out our FAQ X