hudson.matrix
Class NoopMatrixConfigurationSorter

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<MatrixConfigurationSorter>
      extended by hudson.matrix.MatrixConfigurationSorter
          extended by hudson.matrix.NoopMatrixConfigurationSorter
All Implemented Interfaces:
ExtensionPoint, Describable<MatrixConfigurationSorter>, Comparator<MatrixConfiguration>

public class NoopMatrixConfigurationSorter
extends MatrixConfigurationSorter

Place holder for default "do not sort" MatrixConfigurationSorter.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class NoopMatrixConfigurationSorter.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
NoopMatrixConfigurationSorter()
           
 
Method Summary
 int compare(MatrixConfiguration o1, MatrixConfiguration o2)
           
 void validate(MatrixProject p)
          Checks if this sorter is properly configured and applicable for the given project.
 
Methods inherited from class hudson.matrix.MatrixConfigurationSorter
getDescriptor
 
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
 

Constructor Detail

NoopMatrixConfigurationSorter

@DataBoundConstructor
public NoopMatrixConfigurationSorter()
Method Detail

validate

public void validate(MatrixProject p)
              throws FormValidation
Description copied from class: MatrixConfigurationSorter
Checks if this sorter is properly configured and applicable for the given project.

This method is invoked when the configuration is submitted to ensure that the sorter is compatible with the current project configuration (most probably with its Axis.)

Specified by:
validate in class MatrixConfigurationSorter
Parameters:
p - Project for which this sorter is being used for.
Throws:
FormValidation - If you need to report an error to the user and reject the form submission.

compare

public int compare(MatrixConfiguration o1,
                   MatrixConfiguration o2)


Copyright © 2004-2013. All Rights Reserved.