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

editor.run.AbstractRunConfig Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package editor.run;

/**
 */
public abstract class AbstractRunConfig> implements IRunConfig
{
  private T _params;

  public AbstractRunConfig( T params )
  {
    _params = params;
  }

  // this if for reading from json
  protected AbstractRunConfig()
  {
  }

  @Override
  public T getParams()
  {
    return _params;
  }
  public void setParams( T params )
  {
    _params = params;
  }

  @Override
  public boolean equals( Object o )
  {
    if( this == o )
    {
      return true;
    }
    if( !(o instanceof AbstractRunConfig) )
    {
      return false;
    }

    AbstractRunConfig that = (AbstractRunConfig)o;

    return _params.equals( that._params );
  }

  @Override
  public int hashCode()
  {
    int result = _params.hashCode();
    result = 31 * result + _params.hashCode();
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy