Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.currentgame;
 
 
     private static final long serialVersionUID = 6466043229440089519L;
    private Rune rune;

    

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

    
The count of this rune used by the participant

Returns:
the count of this rune used by the participant
    public int getCount() {
        return super.getInteger(.getCount());
    }

    
The rune

Returns:
the rune
    public Rune getRune() {
        if( != null) {
            return ;
        }
        final Long l = .getRuneId();
        if(l == null) {
            throw new MissingDataException("Rune ID is null.");
        }
         = RiotAPI.getRune(l.intValue());
        return ;
    }

    
The ID of the rune

Returns:
the ID of the rune
    public long getRuneID() {
        return super.getLong(.getRuneId());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "RuneCount (" + getRune() + " x " + getCount() + ")";
    }
New to GrepCode? Check out our FAQ X