org.zodiac.template.freemarker.config.FreeMarkerConfig Maven / Gradle / Ivy
The newest version!
package org.zodiac.template.freemarker.config;
import java.util.Objects;
public class FreeMarkerConfig {
private boolean autoImportsEnabled = true;
private boolean autoIncludesEnabled = true;
private boolean lazyImports;
private boolean lazyAutoImports;
private boolean lazyAutoImportsSet;
public FreeMarkerConfig setAutoImportsEnabled(boolean autoImportsEnabled) {
this.autoImportsEnabled = autoImportsEnabled;
return this;
}
public FreeMarkerConfig setAutoIncludesEnabled(boolean autoIncludesEnabled) {
this.autoIncludesEnabled = autoIncludesEnabled;
return this;
}
public FreeMarkerConfig setLazyImports(boolean lazyImports) {
this.lazyImports = lazyImports;
return this;
}
public FreeMarkerConfig setLazyAutoImports(boolean lazyAutoImports) {
this.lazyAutoImports = lazyAutoImports;
return this;
}
public FreeMarkerConfig setLazyAutoImportsSet(boolean lazyAutoImportsSet) {
this.lazyAutoImportsSet = lazyAutoImportsSet;
return this;
}
public boolean isAutoImportsEnabled() {
return autoImportsEnabled;
}
public boolean isAutoIncludesEnabled() {
return autoIncludesEnabled;
}
public boolean isLazyImports() {
return lazyImports;
}
public boolean isLazyAutoImports() {
return lazyAutoImports;
}
public boolean isLazyAutoImportsSet() {
return lazyAutoImportsSet;
}
@Override
public int hashCode() {
return Objects.hash(autoImportsEnabled, autoIncludesEnabled, lazyAutoImports, lazyAutoImportsSet, lazyImports);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
FreeMarkerConfig other = (FreeMarkerConfig)obj;
return autoImportsEnabled == other.autoImportsEnabled && autoIncludesEnabled == other.autoIncludesEnabled
&& lazyAutoImports == other.lazyAutoImports && lazyAutoImportsSet == other.lazyAutoImportsSet
&& lazyImports == other.lazyImports;
}
@Override
public String toString() {
return "[autoImportsEnabled=" + autoImportsEnabled + ", autoIncludesEnabled="
+ autoIncludesEnabled + ", lazyImports=" + lazyImports + ", lazyAutoImports=" + lazyAutoImports
+ ", lazyAutoImportsSet=" + lazyAutoImportsSet + "]";
}
}