Package org.ametys.web.repository.site
Class DefaultSiteType.SiteConfigurationParametersComparator
- java.lang.Object
-
- org.ametys.runtime.model.CategorizedElementDefinitionWrapperComparator<SiteParameterWrapper>
-
- org.ametys.web.repository.site.DefaultSiteType.SiteConfigurationParametersComparator
-
- All Implemented Interfaces:
Comparator<SiteParameterWrapper>
- Enclosing class:
- DefaultSiteType
class DefaultSiteType.SiteConfigurationParametersComparator extends CategorizedElementDefinitionWrapperComparator<SiteParameterWrapper>
Comparator for the site parameter wrappers using their position If no position is set, keep the order of arrival in the configuration
-
-
Constructor Summary
Constructors Constructor Description SiteConfigurationParametersComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
compareWrappersWithSamePositions(SiteParameterWrapper wrapper1, SiteParameterWrapper wrapper2)
Compares the given wrappers that have the same (maybe not set) positions-
Methods inherited from class org.ametys.runtime.model.CategorizedElementDefinitionWrapperComparator
compare
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
SiteConfigurationParametersComparator
SiteConfigurationParametersComparator()
-
-
Method Detail
-
compareWrappersWithSamePositions
protected int compareWrappersWithSamePositions(SiteParameterWrapper wrapper1, SiteParameterWrapper wrapper2)
Description copied from class:CategorizedElementDefinitionWrapperComparator
Compares the given wrappers that have the same (maybe not set) positions- Overrides:
compareWrappersWithSamePositions
in classCategorizedElementDefinitionWrapperComparator<SiteParameterWrapper>
- Parameters:
wrapper1
- the first wrapperwrapper2
- the second wrapper- Returns:
- a negative integer, zero, or a positive integer as the first wrapper is less than, equal to, or greater than the second.
-
-