Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.upgrade
Class BuildNumberComparator

    java.lang.Object
      com.atlassian.bamboo.upgrade.BuildNumberComparator

All Implemented Interfaces:
  Comparator

    public class BuildNumberComparator

extends Object
implements Comparator

Constructor Summary
`BuildNumberComparator()`

Method Summary
`int` | `compare(Object o1, Object o2)` Compares two string representation of build numbers.

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

### BuildNumberComparator

    public BuildNumberComparator()

Method Detail

### compare

    public int compare(Object o1,
                       Object o2)

  Compares two string representation of build numbers. These strings must be parsable to a number.

  Specified by:
    `compare` in interface `Comparator`
  Parameters:
    `o1` -
    `o2` -
  Returns:
    Underlying number comparison notation - 1 = greater than, 0 = equals, -1 = less than.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.