Class ComparableConflictGroup
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.UiGroupData
-
- de.hybris.platform.sap.productconfig.facades.populator.ComparableConflictGroup
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ComparableConflictGroup>
public class ComparableConflictGroup extends UiGroupData implements java.lang.Comparable<ComparableConflictGroup>
Allows to sort conflict groups- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComparableConflictGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ComparableConflictGroup otherConflictGroup)protected java.lang.IntegercompileRankFromCsticList(java.util.Set<java.lang.String> myCstics)booleanequals(java.lang.Object another)java.util.List<UiGroupData>getCsticGroupsFlat()protected java.util.ListgetEmptyList()java.lang.IntegergetStoredRank()inthashCode()java.lang.Integerrank()voidsetCsticGroupsFlat(java.util.List<UiGroupData> csticGroupsFlat)protected java.lang.IntegertoIntegerAndStore(int rank)-
Methods inherited from class de.hybris.platform.sap.productconfig.facades.UiGroupData
getCstics, getDescription, getFirstOrLastGroup, getGroupStatus, getGroupType, getId, getName, getNumberErrorCstics, getSubGroups, getSummaryText, isCollapsed, isCollapsedInSpecificationTree, isConfigurable, isOneConfigurableSubGroup, isVisited, setCollapsed, setCollapsedInSpecificationTree, setConfigurable, setCstics, setDescription, setFirstOrLastGroup, setGroupStatus, setGroupType, setId, setName, setNumberErrorCstics, setOneConfigurableSubGroup, setSubGroups, setSummaryText, setVisited
-
-
-
-
Method Detail
-
getStoredRank
public java.lang.Integer getStoredRank()
- Returns:
- the storedRank
-
getCsticGroupsFlat
public java.util.List<UiGroupData> getCsticGroupsFlat()
- Returns:
- the csticGroupsFlat
-
setCsticGroupsFlat
public void setCsticGroupsFlat(java.util.List<UiGroupData> csticGroupsFlat)
- Parameters:
csticGroupsFlat- the csticGroupsFlat to set
-
getEmptyList
protected java.util.List getEmptyList()
-
rank
public java.lang.Integer rank()
- Returns:
- The rank of a conflict group. This is compiled from the list of cstic groups. The rank equals the number of the first cstic which is part of the conflict
-
compileRankFromCsticList
protected java.lang.Integer compileRankFromCsticList(java.util.Set<java.lang.String> myCstics)
-
toIntegerAndStore
protected java.lang.Integer toIntegerAndStore(int rank)
-
compareTo
public int compareTo(ComparableConflictGroup otherConflictGroup)
- Specified by:
compareToin interfacejava.lang.Comparable<ComparableConflictGroup>
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-