Class DifferentialEngine.ModelBuilder
- java.lang.Object
-
- fr.ird.observe.services.service.referential.differential.DifferentialEngine.ModelBuilder
-
- Enclosing class:
- DifferentialEngine
protected static class DifferentialEngine.ModelBuilder extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedModelBuilder(BusinessProject businessProject, ReferentialService leftSideService, ReferentialService rightSideService, ProgressionModel progressionModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <D extends ReferentialDto>
voidadd0(boolean left, DifferentialType stateType, D leftDto, D rightDto, List<Differential> builder, com.google.common.collect.ImmutableSet<String> modifiedProperties)protected <D extends ReferentialDto>
voidaddToLeft(DifferentialType stateType, D leftDto, D rightDto, com.google.common.collect.ImmutableSet<String> modifiedProperties)protected <D extends ReferentialDto>
voidaddToRight(DifferentialType stateType, D leftDto, D rightDto, com.google.common.collect.ImmutableSet<String> modifiedProperties)DifferentialModelbuild()protected <D extends ReferentialDto>
intcompareTo(D leftSideDto, D rightSideDto)protected ObjectgetValue(String propertyName, ReferentialDto dto)<D extends ReferentialDto>
DifferentialEngine.ModelBuilderregister(Class<D> dtoType, int index, int max)protected <D extends ReferentialDto>
DifferentialEngine.ModelBuilderregister(Class<D> dtoType, com.google.common.collect.ImmutableSet<D> leftSideDtoList, com.google.common.collect.ImmutableSet<D> rightSideDtoList)
-
-
-
Constructor Detail
-
ModelBuilder
protected ModelBuilder(BusinessProject businessProject, ReferentialService leftSideService, ReferentialService rightSideService, ProgressionModel progressionModel)
-
-
Method Detail
-
build
public DifferentialModel build()
-
register
public <D extends ReferentialDto> DifferentialEngine.ModelBuilder register(Class<D> dtoType, int index, int max)
-
register
protected <D extends ReferentialDto> DifferentialEngine.ModelBuilder register(Class<D> dtoType, com.google.common.collect.ImmutableSet<D> leftSideDtoList, com.google.common.collect.ImmutableSet<D> rightSideDtoList)
-
addToLeft
protected <D extends ReferentialDto> void addToLeft(DifferentialType stateType, D leftDto, D rightDto, com.google.common.collect.ImmutableSet<String> modifiedProperties)
-
addToRight
protected <D extends ReferentialDto> void addToRight(DifferentialType stateType, D leftDto, D rightDto, com.google.common.collect.ImmutableSet<String> modifiedProperties)
-
add0
protected <D extends ReferentialDto> void add0(boolean left, DifferentialType stateType, D leftDto, D rightDto, List<Differential> builder, com.google.common.collect.ImmutableSet<String> modifiedProperties)
-
getValue
protected Object getValue(String propertyName, ReferentialDto dto)
-
compareTo
protected <D extends ReferentialDto> int compareTo(D leftSideDto, D rightSideDto)
-
-