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

br.com.objectos.code.pojo.SimpleAttributeMethodPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.code.pojo;

import br.com.objectos.code.AccessInfo;
import br.com.objectos.core.testing.Testables;
import com.squareup.javapoet.TypeName;
import javax.annotation.Generated;

@Generated("br.com.objectos.auto.pojo.AutoPojoProcessor")
final class SimpleAttributeMethodPojo extends SimpleAttributeMethod {
  private final Naming naming;

  private final AccessInfo accessInfo;

  private final String name;

  private final String fieldName;

  private final TypeName returnTypeName;

  public SimpleAttributeMethodPojo(SimpleAttributeMethodBuilderPojo builder) {
    super();
    naming = builder.___get___naming();
    accessInfo = builder.___get___accessInfo();
    name = builder.___get___name();
    fieldName = builder.___get___fieldName();
    returnTypeName = builder.___get___returnTypeName();
  }

  @Override
  public boolean isEqual(AttributeMethod o) {
    if (!SimpleAttributeMethod.class.isInstance(o)) {
      return false;
    }
    SimpleAttributeMethod that = SimpleAttributeMethod.class.cast(o);
    return Testables.isEqualHelper()
        .equal(naming, that.naming())
        .equal(accessInfo, that.accessInfo())
        .equal(name, that.name())
        .equal(fieldName, that.fieldName())
        .equal(returnTypeName, that.returnTypeName())
        .result();
  }

  @Override
  Naming naming() {
    return naming;
  }

  @Override
  AccessInfo accessInfo() {
    return accessInfo;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  String fieldName() {
    return fieldName;
  }

  @Override
  TypeName returnTypeName() {
    return returnTypeName;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy