Class DefaultComparisonState<I>
- java.lang.Object
-
- com.hybris.cockpitng.widgets.compare.model.DefaultComparisonState<I>
-
- All Implemented Interfaces:
ComparisonState<I>
public class DefaultComparisonState<I> extends java.lang.Object implements ComparisonState<I>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.hybris.cockpitng.widgets.compare.model.ComparisonState
ComparisonState.Status
-
-
Constructor Summary
Constructors Constructor Description DefaultComparisonState(I reference, java.util.List<I> allObjects)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<I>getAllObjects()Gets all objects that should be compared.protected java.util.List<I>getAllObjectsMutable()java.util.List<java.lang.Object>getComparedObjectIds()Gets a list of object ids that has been compared against reference up until now.protected java.util.List<java.lang.Object>getComparedObjectIdsMutable()java.util.List<I>getComparedObjects()Gets a list of objects that has been compared against reference up until now.protected java.util.List<I>getComparedObjectsMutable()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.voidremoveObjectFromCompared(I object)Deprecated, for removal: This API element is subject to removal in a future version.since 1811.voidremoveObjectFromCompared(java.lang.Object id, I object)voidsetObjectCompared(I object)Deprecated, for removal: This API element is subject to removal in a future version.since 1811.voidsetObjectCompared(java.lang.Object id, I object)protected voidsetObjectIdCompared(java.lang.Object id)voidsetStatus(ComparisonState.Status status)
-
-
-
Method Detail
-
getReference
public I getReference()
Description copied from interface:ComparisonStateGets a reference object against which a comparison is being performed- Specified by:
getReferencein interfaceComparisonState<I>- Returns:
- reference object
-
setObjectCompared
@Deprecated(since="1811", forRemoval=true) public void setObjectCompared(I object)Deprecated, for removal: This API element is subject to removal in a future version.since 1811. Please usesetObjectCompared(Object, Object)
-
setObjectCompared
public void setObjectCompared(java.lang.Object id, I object)
-
setObjectIdCompared
protected void setObjectIdCompared(java.lang.Object id)
-
removeObjectFromCompared
@Deprecated(since="1811", forRemoval=true) public void removeObjectFromCompared(I object)Deprecated, for removal: This API element is subject to removal in a future version.since 1811. Please useremoveObjectFromCompared(Object)
-
removeObjectFromCompared
public void removeObjectFromCompared(java.lang.Object id, I object)
-
getComparedObjects
public java.util.List<I> getComparedObjects()
Description copied from interface:ComparisonStateGets a list of objects that has been compared against reference up until now.- Specified by:
getComparedObjectsin interfaceComparisonState<I>- Returns:
- list of compared objects
-
getComparedObjectIds
public java.util.List<java.lang.Object> getComparedObjectIds()
Description copied from interface:ComparisonStateGets a list of object ids that has been compared against reference up until now.- Specified by:
getComparedObjectIdsin interfaceComparisonState<I>- Returns:
- list of compared objects
-
getComparedObjectIdsMutable
protected java.util.List<java.lang.Object> getComparedObjectIdsMutable()
-
getComparedObjectsMutable
protected java.util.List<I> getComparedObjectsMutable()
-
getAllObjects
public java.util.List<I> getAllObjects()
Description copied from interface:ComparisonStateGets all objects that should be compared. Returned list contains those that are already compared and those that will be compared in the future.- Specified by:
getAllObjectsin interfaceComparisonState<I>- Returns:
- list of all objects to be compared
-
getAllObjectsMutable
protected java.util.List<I> getAllObjectsMutable()
-
getStatus
public ComparisonState.Status getStatus()
Description copied from interface:ComparisonStateGets current status of comparison - if it is not yest started, still in progress of done.- Specified by:
getStatusin interfaceComparisonState<I>- Returns:
- comparison status
-
setStatus
public void setStatus(ComparisonState.Status status)
-
-