src/main/java/mobi/designmyapp/common/instance/provider/InstanceProvider.java
@Override
  public int compareTo(InstanceProvider instanceProvider) {
    if (this.getPriority().equals(instanceProvider.getPriority())) {
      return this.getName().compareTo(instanceProvider.getName());
    } else {
      return this.getPriority().compareTo(instanceProvider.getPriority());
    }
  }
@Override
  public int compareTo(InstanceProvider instanceProvider) {
    if (this.getPriority().equals(instanceProvider.getPriority())) {
      return this.getName().compareTo(instanceProvider.getName());
    } else {
      return this.getPriority().compareTo(instanceProvider.getPriority());
    }
  }
@ Override public int compareTo ( InstanceProvider instanceProvider ) { if ( this . getPriority ( ) . equals ( instanceProvider . getPriority ( ) ) ) { return this . getName ( ) . compareTo ( instanceProvider . getName ( ) ) ; } else { return this . getPriority ( ) . compareTo ( instanceProvider . getPriority ( ) ) ; } }
Default implementation of compareTo for the InstanceManager.
Default implementation of compareTo for the InstanceManager .