У нас вы можете посмотреть бесплатно Write Efficient Bug-free and Simple Comparators in Java - JEP Café #17 или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса savevideohd.ru
How to write good, bug free and correct comparators. Comparator are elements used daily in all Java applications. There are fairly easy to write, but must also follow several subtle rules. This JEP Café explains all of them: how to leverage the factory methods from the Comparator interface, and from the wrapper classes of primitive types. We also cover even more subtle and unexpected bugs you may come across with HashSet and HashMap if your comparators are not consistent. ⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯ 00:00 Intro 01:08 Sorting lists with comparators 02:50 Comparison contract 04:19 Creating bug-free comparators to compare numbers 07:55 Creating comparators with the factories from Comparator 10:16 Adding mutable Comparable objects to Sets and Maps 18:28 Wrap up and outro ⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯ ◦ About the overloads of List.sort(Comparator) by Stuart Marks ➱ https://stuartmarks.wordpress.com/202... ◦ Comparator documentation ➱ https://docs.oracle.com/en/java/javas... ◦ "Comparison Method Violates Its General Contract!" by Stuart Marks ➱. • Comparison Method Violates Its Genera... and • Comparison Method Violates Its Genera... ◦ Dev.java ➱ https://dev.java ◦ Inside.java ➱ https://inside.java ◦ JDK 20 ➱ https://openjdk.org/projects/jdk/20 ◦ OpenJDK ➱ https://openjdk.org ◦ Oracle Java ➱ https://www.oracle.com/java/ Tags: #Java #Java17 #Java20 #OpenJDK #JDK #JDK17 #Comparator #JEPCafe #insidejava