- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
public int compare(BwEvent e1, BwEvent e2) { return entity.compare(e1, e2); }
@Override @NoProxy public int compareTo(final BwEvent o2) { return compare(this, o2); }
@Override public int compare(final Object o1, final Object o2) { if (!(o1 instanceof CoreEventInfo)) { return -1; } if (!(o2 instanceof CoreEventInfo)) { return 1; } if (o1 == o2) { return 0; } CoreEventInfo e1 = (CoreEventInfo)o1; CoreEventInfo e2 = (CoreEventInfo)o2; return e1.getEvent().compare(e1.getEvent(), e2.getEvent()); }
@Override public int compare(final EventInfo e1, final EventInfo e2) { if (e1 == e2) { return 0; } return e1.getEvent().compare(e1.getEvent(), e2.getEvent()); /*BwEvent ev1 = e1.getEvent(); BwEvent ev2 = e2.getEvent(); int res = ev1.getUid().compareTo(ev2.getUid()); if (res != 0) { return res; } return Util.compareStrings(ev1.getRecurrenceId(), ev2.getRecurrenceId());*/ }