Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.summoner;
 
 
     private static final long serialVersionUID = 2625639856219721648L;
    private Mastery mastery;

    

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

    
Mastery this holds rank for

Returns:
mastery this holds rank for
    public Mastery getMastery() {
        if( != null) {
            return ;
        }
        final Integer i = .getId();
        if(i == null) {
            throw new MissingDataException("Mastery ID is null.");
        }
         = RiotAPI.getMasteryByID(i.longValue());
        return ;
    }

    
ID for the Mastery this holds rank for

Returns:
ID for the mastery this holds rank for
    public long getMasteryID() {
        return super.getInteger(.getId());
    }

    
Mastery rank (i.e., the number of points put into this mastery)

Returns:
mastery rank (i.e., the number of points put into this mastery)
    public int getRank() {
        return super.getInteger(.getRank());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "MasteryRank (" + getMastery() + " level " + getRank() + ")";
    }
New to GrepCode? Check out our FAQ X