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 Service extends OriannaObject<com.robrua.orianna.type.dto.status.Service> {
    private static final long serialVersionUID = 4726440822482124254L;
    private List<Incidentincidents;

    

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

    
The incidents

Returns:
the incidents
    public List<IncidentgetIncidents() {
        if( == null) {
             = new ArrayList<>();
            for(final com.robrua.orianna.type.dto.status.Incident incident : .getIncidents()) {
                .add(new Incident(incident));
            }
        }
        return Collections.unmodifiableList();
    }

    
The name

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

    
The slug

Returns:
the slug
    public String getSlug() {
        return super.getString(.getSlug());
    }

    
The status

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