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

## backupAndRecovery
Class RepoHostComparator

    java.lang.Object
      backupAndRecovery.RepoHostComparator

All Implemented Interfaces:
  java.util.Comparator<RepoHost>

    public class RepoHostComparator

extends java.lang.Object
implements java.util.Comparator<RepoHost>

Purpose of this class is to provide a way to compare feasibility of two representations of repository hosts. Weights of repository hosts are compared to determine, which of two is more feasible. When sorted in ascending order using this comparator, first element will be most desirable. This comparator sorts in reverse order.

See Also:
  `Comparator`

Constructor Summary
`RepoHostComparator()`

Method Summary
`int` | `compare(RepoHost o1, RepoHost o2)`

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

### RepoHostComparator

    public RepoHostComparator()

Method Detail

### compare

    public int compare(RepoHost o1,
                       RepoHost o2)

  Specified by:
    `compare` in interface `java.util.Comparator<RepoHost>`

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