Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

    

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

    
The mastery

Returns:
the mastery
    public Mastery getMastery() {
        if( != null) {
            return ;
        }
        final Long l = .getMasteryId();
        if(l == null) {
            throw new MissingDataException("Mastery ID is null.");
        }
         = RiotAPI.getMasteryByID(l.longValue());
        return ;
    }

    
The ID of the mastery

Returns:
the ID of the mastery
    public long getMasteryID() {
        return super.getLong(.getMasteryId());
    }

    
The number of points put into this mastery by the user

Returns:
the number of points put into this mastery by the user
    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