Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

    

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

    
The mastery this holds rank for

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

    
The ID of the mastery this holds rank for

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

    
Mastery rank

Returns:
mastery rank
    public long getRank() {
        return super.getLong(.getRank());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "ParticipantMastery (" + getMastery() + ", level " + getRank() + ")";
    }
New to GrepCode? Check out our FAQ X