Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.team;
 
 import java.util.List;
 
public class Roster extends OriannaObject<com.robrua.orianna.type.dto.team.Roster> {
    private static final long serialVersionUID = 3320561622192076811L;
    private List<TeamMemberInfomemberList;
    private Summoner owner;

    

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

    
The member list

Returns:
the member list
    public List<TeamMemberInfogetMemberList() {
        if( == null) {
             = new ArrayList<>();
            for(final com.robrua.orianna.type.dto.team.TeamMemberInfo m : .getMemberList()) {
                .add(new TeamMemberInfo(m));
            }
        }
        return Collections.unmodifiableList();
    }

    
The team's owner

Returns:
the team's owner
    public Summoner getOwner() {
        if( != null) {
            return ;
        }
        final Long l = .getOwnerId();
        if(l == null) {
            throw new MissingDataException("Owner ID is null.");
        }
         = RiotAPI.getSummonerByID(l.longValue());
        return ;
    }

    
The summoner ID of the owner

Returns:
the summoner ID of the owner
    public long getOwnerID() {
        return super.getLong(.getOwnerId());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Roster (" + getMemberList() + ")";
    }
New to GrepCode? Check out our FAQ X