Interface ComparisonState<I>
-
- All Known Implementing Classes:
DefaultComparisonState
public interface ComparisonState<I>Interface that indicates current state of comparison process. CompareView widget performs multiple comparison operations in background. This interface allows to check what is the current state of this process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComparisonState.Status
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<I>getAllObjects()Gets all objects that should be compared.default java.util.List<java.lang.Object>getComparedObjectIds()Gets a list of object ids that has been compared against reference up until now.java.util.List<I>getComparedObjects()Gets a list of objects that has been compared against reference up until now.IgetReference()Gets a reference object against which a comparison is being performedComparisonState.StatusgetStatus()Gets current status of comparison - if it is not yest started, still in progress of done.
-
-
-
Method Detail
-
getReference
I getReference()
Gets a reference object against which a comparison is being performed- Returns:
- reference object
-
getStatus
ComparisonState.Status getStatus()
Gets current status of comparison - if it is not yest started, still in progress of done.- Returns:
- comparison status
-
getComparedObjects
java.util.List<I> getComparedObjects()
Gets a list of objects that has been compared against reference up until now.- Returns:
- list of compared objects
-
getComparedObjectIds
default java.util.List<java.lang.Object> getComparedObjectIds()
Gets a list of object ids that has been compared against reference up until now.- Returns:
- list of compared objects
-
getAllObjects
java.util.List<I> getAllObjects()
Gets all objects that should be compared. Returned list contains those that are already compared and those that will be compared in the future.- Returns:
- list of all objects to be compared
-
-