All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.silanis.esl.api.model.Result Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.api.model;
//
import com.fasterxml.jackson.annotation.*;
import java.util.List;
import java.util.ArrayList;
import com.silanis.esl.api.util.SchemaSanitizer;
@JsonIgnoreProperties(ignoreUnknown=true)
public class Result extends Model
      implements java.io.Serializable
{
    
    // Dirty Flag Constants
    @JsonIgnore
    public static final String FIELD_COUNT = "count";
    @JsonIgnore
    public static final String FIELD_RESULTS = "results";
    
    // Empty Constructor
    public Result ( ) {}
    
    // Fields
    protected Integer _count = 0;
    protected List _results = new ArrayList();
    
    // Accessors
        
    
    public Result setCount( Integer value ){
        SchemaSanitizer.throwOnNull(FIELD_COUNT,value);
        // TODO With proper compare
        // if ( this._count == value ) return this;
        this._count = value;
        setDirty(FIELD_COUNT);
        return this;
    }
    // Used internally by aws. Invokes a the corresponding setter if the value is not null
    @JsonIgnore
    public Result safeSetCount( Integer value ){
        if ( value != null ) { this.setCount( value ); }
        return this;
    }
    public Integer getCount(){
        return _count;
    }
    
        
    
    public Result setResults( List value ){
        SchemaSanitizer.throwOnNull(FIELD_RESULTS,value);
        // TODO With proper compare
        // if ( this._results == value ) return this;
        this._results = value;
        setDirty(FIELD_RESULTS);
        return this;
    }
    // Used internally by aws. Invokes a the corresponding setter if the value is not null
    @JsonIgnore
    public Result safeSetResults( List value ){
        if ( value != null ) { this.setResults( value ); }
        return this;
    }
    public List getResults(){
        return _results;
    }
    // List adder
    public Result addResult( T value ){
        if (value == null) { throw new IllegalArgumentException("Argument cannot be null"); }
        this._results.add(value);
        setDirty(FIELD_RESULTS);
        return this;
    }
    
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy