Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.core.staticdata;
  
  import java.util.List;
  
  
  public class Mastery extends OriannaObject<com.robrua.orianna.type.dto.staticdata.Mastery> {
     private static final long serialVersionUID = -5248806360824691743L;
     private Image image;

    

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

    
Description

Returns:
description
 
     public List<StringgetDescription() {
         if( == null) {
              = new ArrayList<>();
             .addAll(.getDescription());
         }
 
         return Collections.unmodifiableList();
     }

    
ID

Returns:
ID
 
     public long getID() {
         return super.getInteger(.getId());
     }
 
     public Image getImage() {
         if( == null) {
              = new Image(.getImage());
         }
 
         return ;
     }

    
Name

Returns:
name
 
     public String getName() {
         return super.getString(.getName());
     }

    
Prereq name

Returns:
prereq name
 
     public String getPrereq() {
         return super.getString(.getPrereq());
     }

    
Ranks

Returns:
ranks
 
     public int getRanks() {
         return super.getInteger(.getRanks());
     }

    
Sanitized description

Returns:
sanitized description
 
     public List<StringgetSanitizedDescription() {
         if( == null) {
              = new ArrayList<>();
         }
 
         return Collections.unmodifiableList();
     }

    
Type

Returns:
type
 
     public MasteryType getType() {
        return MasteryType.valueOf(super.getString(.getMasteryTree()));
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return getName();
    }
New to GrepCode? Check out our FAQ X