Class DeploymentOrder
java.lang.Object
com.github.fungal.api.configuration.DeploymentOrder
- All Implemented Interfaces:
Serializable,Comparator<URL>
DeploymentOrder defines the order of the deployment should be processed
- Author:
- Jesper Pedersen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription.xml files will be firstDeploymentOrder(List<String> extensions) User defined order -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DeploymentOrder
public DeploymentOrder().xml files will be first -
DeploymentOrder
User defined order- Parameters:
extensions- The order of the file extensions
-
-
Method Details
-
getOrder
Get the order of the extensions- Returns:
- The order
-
getOrderIndex
Get the order index of an url- Parameters:
url- The URL- Returns:
- The index;
Integer.MAX_VALUEif not defined
-
compare
Compare- Specified by:
comparein interfaceComparator<URL>- Parameters:
o1- The first objecto2- The second object- Returns:
- The files sorted according to the specified ordering; the rest according to their natural ordering
-
hashCode
public int hashCode()Hash code -
equals
Equals- Specified by:
equalsin interfaceComparator<URL>- Overrides:
equalsin classObject- Parameters:
o- The object- Returns:
- True if equal; otherwise false
-