Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

    

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

    
Rune associated with the rune slot

Returns:
rune associated with the rune slot
    public Rune getRune() {
        if( != null) {
            return ;
        }
        final Integer i = .getRuneId();
        if(i == null) {
            throw new MissingDataException("Rune ID is null.");
        }
         = RiotAPI.getRuneByID(i.longValue());
        return ;
    }

    
Rune ID associated with the rune slot

Returns:
rune ID associated with the rune slot
    public long getRuneID() {
        return super.getInteger(.getRuneId());
    }

    
Rune slot ID

Returns:
rune slot ID
    public int getRuneSlotID() {
        return super.getInteger(.getRuneSlotId());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "RuneSlot (" + getRune() + ")";
    }
New to GrepCode? Check out our FAQ X