public class DefaultComparisonState<I> extends Object implements ComparisonState<I>
ComparisonState.Status| Constructor and Description |
|---|
DefaultComparisonState(I reference,
List<I> allObjects) |
| Modifier and Type | Method and Description |
|---|---|
List<I> |
getAllObjects()
Gets all objects that should be compared.
|
protected List<I> |
getAllObjectsMutable() |
List<I> |
getComparedObjects()
Gets a list of objects that has been compared against reference up until now.
|
protected List<I> |
getComparedObjectsMutable() |
I |
getReference()
Gets a reference object against which a comparison is being performed
|
ComparisonState.Status |
getStatus()
Gets current status of comparison - if it is not yest started, still in progress of done.
|
void |
removeObjectFromCompared(I object) |
void |
setObjectCompared(I object) |
void |
setStatus(ComparisonState.Status status) |
public I getReference()
ComparisonStategetReference in interface ComparisonState<I>public void setObjectCompared(I object)
public void removeObjectFromCompared(I object)
public List<I> getComparedObjects()
ComparisonStategetComparedObjects in interface ComparisonState<I>public List<I> getAllObjects()
ComparisonStategetAllObjects in interface ComparisonState<I>public ComparisonState.Status getStatus()
ComparisonStategetStatus in interface ComparisonState<I>public void setStatus(ComparisonState.Status status)
Copyright © 2018. All rights reserved.