Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.core.status;
 
 import java.util.List;
 
 
 public class Shard extends OriannaObject<com.robrua.orianna.type.dto.status.Shard> {
    private static final long serialVersionUID = 6716759243691544929L;
    private List<Stringlocales;

    

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

    
The hostname

Returns:
the hostname
    public String getHostname() {
        return super.getString(.getHostname());
    }

    
The locales

Returns:
the locales
    public List<StringgetLocales() {
        if( == null) {
             = new ArrayList<>();
            .addAll(.getLocales());
        }
        return Collections.unmodifiableList();
    }

    
The name

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

    
The region tag

Returns:
the region tag
    public String getRegionTag() {
        return super.getString(.getRegion_tag());
    }

    
The slug

Returns:
the slug
    public String getSlug() {
        return super.getString(.getSlug());
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Shard (" + getName() + ")";
    }
New to GrepCode? Check out our FAQ X