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

io.sundr.model.ModifiersFluent Maven / Gradle / Ivy

package io.sundr.model;

import java.lang.SuppressWarnings;
import io.sundr.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;

/**
 * Generated
 */
@SuppressWarnings("unchecked")
public class ModifiersFluent> extends BaseFluent{
  public ModifiersFluent() {
  }
  
  public ModifiersFluent(Modifiers instance) {
    this.copyInstance(instance);
  }
  private boolean _private;
  private boolean _protected;
  private boolean _public;
  private boolean _abstract;
  private boolean _final;
  private boolean _native;
  private boolean _static;
  private boolean _synchronized;
  private boolean _transient;
  
  protected void copyInstance(Modifiers instance) {
    instance = (instance != null ? instance : new Modifiers());
    if (instance != null) {
          this.withPrivate(instance.isPrivate());
          this.withProtected(instance.isProtected());
          this.withPublic(instance.isPublic());
          this.withAbstract(instance.isAbstract());
          this.withFinal(instance.isFinal());
          this.withNative(instance.isNative());
          this.withStatic(instance.isStatic());
          this.withSynchronized(instance.isSynchronized());
          this.withTransient(instance.isTransient());
        }
  }
  
  public boolean isPrivate() {
    return this._private;
  }
  
  public A withPrivate(boolean _private) {
    this._private=_private; return (A) this;
  }
  
  public boolean hasPrivate() {
    return true;
  }
  
  public boolean isProtected() {
    return this._protected;
  }
  
  public A withProtected(boolean _protected) {
    this._protected=_protected; return (A) this;
  }
  
  public boolean hasProtected() {
    return true;
  }
  
  public boolean isPublic() {
    return this._public;
  }
  
  public A withPublic(boolean _public) {
    this._public=_public; return (A) this;
  }
  
  public boolean hasPublic() {
    return true;
  }
  
  public boolean isAbstract() {
    return this._abstract;
  }
  
  public A withAbstract(boolean _abstract) {
    this._abstract=_abstract; return (A) this;
  }
  
  public boolean hasAbstract() {
    return true;
  }
  
  public boolean isFinal() {
    return this._final;
  }
  
  public A withFinal(boolean _final) {
    this._final=_final; return (A) this;
  }
  
  public boolean hasFinal() {
    return true;
  }
  
  public boolean isNative() {
    return this._native;
  }
  
  public A withNative(boolean _native) {
    this._native=_native; return (A) this;
  }
  
  public boolean hasNative() {
    return true;
  }
  
  public boolean isStatic() {
    return this._static;
  }
  
  public A withStatic(boolean _static) {
    this._static=_static; return (A) this;
  }
  
  public boolean hasStatic() {
    return true;
  }
  
  public boolean isSynchronized() {
    return this._synchronized;
  }
  
  public A withSynchronized(boolean _synchronized) {
    this._synchronized=_synchronized; return (A) this;
  }
  
  public boolean hasSynchronized() {
    return true;
  }
  
  public boolean isTransient() {
    return this._transient;
  }
  
  public A withTransient(boolean _transient) {
    this._transient=_transient; return (A) this;
  }
  
  public boolean hasTransient() {
    return true;
  }
  
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    ModifiersFluent that = (ModifiersFluent) o;
    if (_private != that._private) return false;
    if (_protected != that._protected) return false;
    if (_public != that._public) return false;
    if (_abstract != that._abstract) return false;
    if (_final != that._final) return false;
    if (_native != that._native) return false;
    if (_static != that._static) return false;
    if (_synchronized != that._synchronized) return false;
    if (_transient != that._transient) return false;
    return true;
  }
  
  public int hashCode() {
    return java.util.Objects.hash(_private,  _protected,  _public,  _abstract,  _final,  _native,  _static,  _synchronized,  _transient,  super.hashCode());
  }
  
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("{");
    sb.append("_private:"); sb.append(_private + ",");
    sb.append("_protected:"); sb.append(_protected + ",");
    sb.append("_public:"); sb.append(_public + ",");
    sb.append("_abstract:"); sb.append(_abstract + ",");
    sb.append("_final:"); sb.append(_final + ",");
    sb.append("_native:"); sb.append(_native + ",");
    sb.append("_static:"); sb.append(_static + ",");
    sb.append("_synchronized:"); sb.append(_synchronized + ",");
    sb.append("_transient:"); sb.append(_transient);
    sb.append("}");
    return sb.toString();
  }
  
  public A withPrivate() {
    return withPrivate(true);
  }
  
  public A withProtected() {
    return withProtected(true);
  }
  
  public A withPublic() {
    return withPublic(true);
  }
  
  public A withAbstract() {
    return withAbstract(true);
  }
  
  public A withFinal() {
    return withFinal(true);
  }
  
  public A withNative() {
    return withNative(true);
  }
  
  public A withStatic() {
    return withStatic(true);
  }
  
  public A withSynchronized() {
    return withSynchronized(true);
  }
  
  public A withTransient() {
    return withTransient(true);
  }
  

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy