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

fr.vergne.pester.definition.FieldDefinition Maven / Gradle / Ivy

The newest version!
package fr.vergne.pester.definition;

import java.util.Optional;

import fr.vergne.pester.model.Field;
import fr.vergne.pester.options.Mutability;
import fr.vergne.pester.options.Scope;
import fr.vergne.pester.options.Visibility;

public class FieldDefinition implements InstanciableDefinition> {

	private final Field

instance; private final Optional visibility; private final Optional mutability; private final Optional scope; public FieldDefinition(Class

pojoClass, String name, Optional visibility, Optional mutability, Optional scope) { this.instance = new Field<>(pojoClass, name); this.visibility = visibility; this.mutability = mutability; this.scope = scope; } @Override public Field

getInstance() { return instance; } public Optional getVisibility() { return visibility; } public Optional getMutability() { return mutability; } public Optional getScope() { return scope; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy