fr.vergne.pester.definition.GetterDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pester-core Show documentation
Show all versions of pester-core Show documentation
Implementation of the Pester library.
The newest version!
package fr.vergne.pester.definition;
import java.util.Optional;
import fr.vergne.pester.model.Getter;
import fr.vergne.pester.options.Mutability;
import fr.vergne.pester.options.Scope;
import fr.vergne.pester.options.Visibility;
import fr.vergne.pester.util.namer.Namer;
public class GetterDefinition implements InstanciableDefinition> {
private final Getter instance;
private final Optional visibility;
private final Optional mutability;
private final Optional scope;
public GetterDefinition(Class pojoClass, Namer namer, Optional visibility,
Optional mutability, Optional scope) {
this.instance = new Getter<>(pojoClass, namer);
this.visibility = visibility;
this.mutability = mutability;
this.scope = scope;
}
@Override
public Getter getInstance() {
return instance;
}
public Optional getVisibility() {
return visibility;
}
public Optional getMutability() {
return mutability;
}
public Optional getScope() {
return scope;
}
}