private static class ObjectStatisticsDataProvider.IncreaseCalculator extends java.lang.Object implements IItemConsumer<ObjectStatisticsDataProvider.IncreaseCalculator>, Combinable<ObjectStatisticsDataProvider.IncreaseCalculator>
| Modifier and Type | Field and Description |
|---|---|
private IQuantity |
maxX |
private IQuantity |
minX |
private IMemberAccessor<IQuantity,IItem> |
xAccessor |
private IMemberAccessor<IQuantity,IItem> |
yAccessor |
private IQuantity |
yAtMaxX |
private IQuantity |
yAtMinX |
| Constructor and Description |
|---|
IncreaseCalculator(IMemberAccessor<IQuantity,IItem> xAccessor,
IMemberAccessor<IQuantity,IItem> yAccessor) |
| Modifier and Type | Method and Description |
|---|---|
private void |
add(IQuantity x,
IQuantity y) |
ObjectStatisticsDataProvider.IncreaseCalculator |
combineWith(ObjectStatisticsDataProvider.IncreaseCalculator other)
Combine this object with another object if it is possible and return a combined object.
|
void |
consume(IItem item)
Consumes another item.
|
ObjectStatisticsDataProvider.IncreaseCalculator |
merge(ObjectStatisticsDataProvider.IncreaseCalculator other)
Merges this object with the supplied object.
|
private final IMemberAccessor<IQuantity,IItem> xAccessor
private final IMemberAccessor<IQuantity,IItem> yAccessor
private IQuantity minX
private IQuantity yAtMinX
private IQuantity maxX
private IQuantity yAtMaxX
IncreaseCalculator(IMemberAccessor<IQuantity,IItem> xAccessor, IMemberAccessor<IQuantity,IItem> yAccessor)
public void consume(IItem item)
IItemConsumerconsume in interface IItemConsumer<ObjectStatisticsDataProvider.IncreaseCalculator>public ObjectStatisticsDataProvider.IncreaseCalculator merge(ObjectStatisticsDataProvider.IncreaseCalculator other)
IItemConsumermerge in interface IItemConsumer<ObjectStatisticsDataProvider.IncreaseCalculator>other - another instance to merge withpublic ObjectStatisticsDataProvider.IncreaseCalculator combineWith(ObjectStatisticsDataProvider.IncreaseCalculator other)
Combinablenull
in that case.combineWith in interface Combinable<ObjectStatisticsDataProvider.IncreaseCalculator>other - an object to combine this object withnull if the objects shouldn't be combined