Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.match;
 
 
     private static final long serialVersionUID = 8617936753352196228L;
    private Champion champion;

    

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

    
Banned champion

Returns:
banned champion
    public Champion getChampion() {
        if( != null) {
            return ;
        }
        final Integer i = .getChampionId();
        if(i == null) {
            throw new MissingDataException("Champion ID is null.");
        }
         = RiotAPI.getChampionByID(i.longValue());
        return ;
    }

    
Banned champion ID

Returns:
banned champion ID
    public long getChampionID() {
        return super.getInteger(.getChampionId());
    }

    
Turn during which the champion was banned

Returns:
turn during which the champion was banned
    public int getPickTurn() {
        return super.getInteger(.getPickTurn());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "BannedChampion (" + getChampion() + " @ turn " + getPickTurn() + ")";
    }
New to GrepCode? Check out our FAQ X